osg::TexMat Class Reference
List of all members.
Detailed Description
A texture matrix state class that encapsulates OpenGL texture matrix functionality.
Constructor & Destructor Documentation
osg::TexMat::TexMat |
( |
const Matrix & |
matrix |
) |
[inline] |
osg::TexMat::TexMat |
( |
const TexMat & |
texmat, |
|
|
const CopyOp & |
copyop = CopyOp::SHALLOW_COPY | |
|
) |
| | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::TexMat::~TexMat |
( |
void |
|
) |
[protected, virtual] |
Member Function Documentation
virtual void osg::TexMat::apply |
( |
State & |
state |
) |
const [virtual] |
virtual int osg::TexMat::compare |
( |
const StateAttribute & |
sa |
) |
const [inline, virtual] |
const Matrix& osg::TexMat::getMatrix |
( |
|
) |
const [inline] |
Get the const texture matrix
Matrix& osg::TexMat::getMatrix |
( |
|
) |
[inline] |
bool osg::TexMat::getScaleByTextureRectangleSize |
( |
|
) |
const [inline] |
Get whether the post scaling of the TexMat matrix, by the size of the last applied texture rectangle, is switched on/off.
virtual bool osg::TexMat::isTextureAttribute |
( |
|
) |
const [inline, virtual] |
osg::TexMat::META_StateAttribute |
( |
osg |
, |
|
|
TexMat |
, |
|
|
TEXMAT |
| |
|
) |
| | |
void osg::TexMat::setMatrix |
( |
const Matrix & |
matrix |
) |
[inline] |
void osg::TexMat::setScaleByTextureRectangleSize |
( |
bool |
flag |
) |
[inline] |
Switch on/off the post scaling of the TexMat matrix by the size of the last applied texture rectangle. Use a TexMat alongside a TextureRectangle with this scaling applied allows one to treat a TextureRectnagles texture coordinate range as if it were the usual non dimensional 0.0 to 1.0 range. Note, the TexMat matrix itself is not modified by the post scaling, its purely an operation passed to OpenGL to do the post scaling once the the TexMat matrix has been loaded.
Member Data Documentation
The documentation for this class was generated from the following file: