Added support for SG_USE_FLOAT_MATRIX and OSG_USE_FLOAT_PLANE in CMake build and

include/osg/Matrix and include/osg/Plane.
This commit is contained in:
Robert Osfield
2007-05-20 11:45:09 +00:00
parent 732685d125
commit dd796df02a
3 changed files with 21 additions and 15 deletions

View File

@@ -17,17 +17,14 @@
#include <osg/Matrixd>
#include <osg/Matrixf>
#define OSG_USE_DOUBLE_MATRICES 1
namespace osg {
#ifdef OSG_USE_DOUBLE_MATRICES
typedef Matrixd Matrix;
typedef RefMatrixd RefMatrix;
#else
#ifdef OSG_USE_FLOAT_MATRIX
typedef Matrixf Matrix;
typedef RefMatrixf RefMatrix;
#else
typedef Matrixd Matrix;
typedef RefMatrixd RefMatrix;
#endif
} //namespace osg