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.
25 lines
383 B
C++
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()
|
|
{
|
|
}
|