From 4e9724245ae397fa33a39a1cfeb031085b9ea041 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 20 May 2003 11:01:16 +0000 Subject: [PATCH] Added setProjectMatrix(const Matrix&) and setModelViewMatrix(const Matrix&) methods. --- include/osgUtil/SceneView | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/osgUtil/SceneView b/include/osgUtil/SceneView index 69405caf5..bfee44e2d 100644 --- a/include/osgUtil/SceneView +++ b/include/osgUtil/SceneView @@ -129,11 +129,13 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced /** set a projection matrix. Note, this will override a camera's projection matrix if it is not NULL.*/ + void setProjectionMatrix(const osg::Matrix& matrix) { _projectionMatrix = new osg::RefMatrix(matrix); } void setProjectionMatrix(osg::RefMatrix* matrix) { _projectionMatrix = matrix; } osg::RefMatrix* getProjectionMatrix() { return _projectionMatrix.get(); } const osg::RefMatrix* getProjectionMatrix() const { return _projectionMatrix.get(); } /** set a modelview matrix. Note, this will override a camera's modelview matrix if it is not NULL.*/ + void setModelViewMatrix(const osg::Matrix& matrix) { _modelviewMatrix = new osg::RefMatrix(matrix); } void setModelViewMatrix(osg::RefMatrix* matrix) { _modelviewMatrix = matrix; } osg::RefMatrix* getModelViewMatrix() { return _modelviewMatrix.get(); } const osg::RefMatrix* getModelViewMatrix() const { return _modelviewMatrix.get(); }