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:
parent
3f042d2f1b
commit
33b03f7ac3
@ -17,17 +17,18 @@
|
|||||||
#include <osg/Matrixd>
|
#include <osg/Matrixd>
|
||||||
#include <osg/Matrixf>
|
#include <osg/Matrixf>
|
||||||
|
|
||||||
|
#define OSG_USE_DOUBLE_MATRICES 1
|
||||||
|
|
||||||
namespace osg {
|
namespace osg {
|
||||||
|
|
||||||
|
#ifdef OSG_USE_DOUBLE_MATRICES
|
||||||
// default to using floating Matrices - Matrixf
|
|
||||||
// typedef Matrixf Matrix;
|
|
||||||
// typedef RefMatrixf RefMatrix;
|
|
||||||
|
|
||||||
// // default to using double Matrices - Matrixd
|
|
||||||
typedef Matrixd Matrix;
|
typedef Matrixd Matrix;
|
||||||
typedef RefMatrixd RefMatrix;
|
typedef RefMatrixd RefMatrix;
|
||||||
|
#else
|
||||||
|
typedef Matrixf Matrix;
|
||||||
|
typedef RefMatrixf RefMatrix;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
} //namespace osg
|
} //namespace osg
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class SG_EXPORT Matrixd
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef float value_type;
|
typedef double value_type;
|
||||||
|
|
||||||
inline Matrixd() { makeIdentity(); }
|
inline Matrixd() { makeIdentity(); }
|
||||||
inline Matrixd( const Matrixd& mat) { set(mat.ptr()); }
|
inline Matrixd( const Matrixd& mat) { set(mat.ptr()); }
|
||||||
|
Loading…
Reference in New Issue
Block a user