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.
This commit is contained in:
Robert Osfield 2003-09-09 08:56:51 +00:00
parent 3f042d2f1b
commit 33b03f7ac3
2 changed files with 8 additions and 7 deletions

View File

@ -17,17 +17,18 @@
#include <osg/Matrixd>
#include <osg/Matrixf>
#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

View File

@ -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()); }