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/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
|
||||
|
||||
|
@ -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()); }
|
||||
|
Loading…
Reference in New Issue
Block a user