From 33b03f7ac37e64c67386099ff8be57be44af4a4d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 Sep 2003 08:56:51 +0000 Subject: [PATCH] Updated docs for release. Added OSG_USE_DOUBLE_MARTRICES define into include/osg/Matrix to make it more convinient to switch between single and double matrices. --- include/osg/Matrix | 13 +++++++------ include/osg/Matrixd | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/osg/Matrix b/include/osg/Matrix index 85e600f5e..977b9df6a 100644 --- a/include/osg/Matrix +++ b/include/osg/Matrix @@ -17,17 +17,18 @@ #include #include +#define OSG_USE_DOUBLE_MATRICES 1 + namespace osg { - -// default to using floating Matrices - Matrixf -// typedef Matrixf Matrix; -// typedef RefMatrixf RefMatrix; - -// // default to using double Matrices - Matrixd +#ifdef OSG_USE_DOUBLE_MATRICES typedef Matrixd Matrix; typedef RefMatrixd RefMatrix; +#else + typedef Matrixf Matrix; + typedef RefMatrixf RefMatrix; +#endif } //namespace osg diff --git a/include/osg/Matrixd b/include/osg/Matrixd index f30ea4740..16d3e71d6 100644 --- a/include/osg/Matrixd +++ b/include/osg/Matrixd @@ -33,7 +33,7 @@ class SG_EXPORT Matrixd public: - typedef float value_type; + typedef double value_type; inline Matrixd() { makeIdentity(); } inline Matrixd( const Matrixd& mat) { set(mat.ptr()); }