Added public accessors

This commit is contained in:
Robert Osfield 2017-01-17 10:52:26 +00:00
parent 771efca5c6
commit 255a86cbe2

View File

@ -168,13 +168,22 @@ class OSG_EXPORT CullStack : public osg::CullSettings
return osg::Vec3(-matrix(0,2),-matrix(1,2),-matrix(2,2)); return osg::Vec3(-matrix(0,2),-matrix(1,2),-matrix(2,2));
} }
typedef fast_back_stack< ref_ptr<RefMatrix> > MatrixStack;
MatrixStack& getProjectionStack() { return _projectionStack; }
const MatrixStack& getProjectionStack() const { return _projectionStack; }
MatrixStack& getModelViewStack() { return _modelviewStack; }
const MatrixStack& getModelViewStack() const { return _modelviewStack; }
MatrixStack& getMVPWStack() { return _MVPW_Stack; }
const MatrixStack& getMVPWStack() const { return _MVPW_Stack; }
protected: protected:
// base set of shadow volume occluder to use in culling. // base set of shadow volume occluder to use in culling.
ShadowVolumeOccluderList _occluderList; ShadowVolumeOccluderList _occluderList;
typedef fast_back_stack< ref_ptr<RefMatrix> > MatrixStack;
MatrixStack _projectionStack; MatrixStack _projectionStack;