Added osgmultiplecameras example and support for pre/post multiplaction.

This commit is contained in:
Robert Osfield
2005-06-15 10:59:10 +00:00
parent 71122ff38f
commit dfaed083ea
9 changed files with 351 additions and 15 deletions

View File

@@ -64,6 +64,17 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
}
enum TransformOrder
{
PRE_MULTIPLE,
POST_MULTIPLE
};
void setTransformOrder(TransformOrder order) { _transformOrder = order; }
TransformOrder getTransformOrder() const { return _transformOrder; }
/** Set the projection matrix. Can be thought of as setting the lens of a camera. */
inline void setProjectionMatrix(const osg::Matrixf& matrix) { _projectionMatrix.set(matrix); }
@@ -225,6 +236,8 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
Vec4 _clearColor;
GLbitfield _clearMask;
ref_ptr<Viewport> _viewport;
TransformOrder _transformOrder;
Matrixd _projectionMatrix;
Matrixd _viewMatrix;