Files
OpenSceneGraph/src/osg/Projection.cpp
Robert Osfield 3351306d80 Added new osg::Projection node, and osgUtil::NewCullVisitor which are work
in progress for the new support for controlling the projection matrix from
within the scene graph.

Also Added osg::State::getClippingVolume(), getProjectionMatrix() and
getModelViewMatrix() with allows drawables to access the current projection,
and model view matrices and the view frustum in local coords to the drawable.
2002-03-31 16:40:44 +00:00

25 lines
383 B
C++

#include <osg/Projection>
using namespace osg;
Projection::Projection()
{
_matrix = osgNew Matrix;
}
Projection::Projection(const Projection& projection,const CopyOp& copyop):
Group(projection,copyop),
_matrix(osgNew Matrix(*projection._matrix))
{
}
Projection::Projection(const Matrix& mat )
{
_matrix = osgNew Matrix(mat);
}
Projection::~Projection()
{
}