Added new Matrixf and Matrixd implementations.
Made Matrix be a typedef to either Matrixf or Matrixd. Defaults to Matrixf. Converted the osgGA::MatrixManipulators and osgProducer::Viewer/OsgCameraGroup across to using exclusively Matrixd for internal computations and passing betwen Manipulators, Producer and SceneView. Note, SceneView still uses Matrix internally so will depend on what is set as the default in include/osg/Matrix. Added the ability to osgProducer::setDone/getDone(), kept done() as the method that the viewer main loop uses for detecting the exit condition.
This commit is contained in:
@@ -20,8 +20,13 @@
|
||||
namespace osg {
|
||||
|
||||
|
||||
typedef Matrixd Matrix;
|
||||
typedef RefMatrixd RefMatrix;
|
||||
// default to using floating Matrices - Matrixf
|
||||
typedef Matrixf Matrix;
|
||||
typedef RefMatrixf RefMatrix;
|
||||
|
||||
// // default to using double Matrices - Matrixd
|
||||
// typedef Matrixd Matrix;
|
||||
// typedef RefMatrixd RefMatrix;
|
||||
|
||||
|
||||
} //namespace osg
|
||||
|
||||
Reference in New Issue
Block a user