#define COMPARE_StateAttribute_Parameter(parameter)
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(....
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(....
Definition StateAttribute:57
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Matrixd Matrix
Definition Matrix:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ TEXMAT
Definition StateAttribute:147
bool _scaleByTextureRectangleSize
Definition TexMat:82
const Matrix & getMatrix() const
Get the const texture matrix.
Definition TexMat:62
bool getScaleByTextureRectangleSize() const
Get whether the post scaling of the TexMat matrix, by the size of the last applied texture rectangle,...
Definition TexMat:72
Matrix & getMatrix()
Get the texture matrix.
Definition TexMat:59
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition TexMat:43
void setScaleByTextureRectangleSize(bool flag)
Switch on/off the post scaling of the TexMat matrix by the size of the last applied texture rectangle...
Definition TexMat:69
virtual bool isTextureAttribute() const
Return true if StateAttribute is a type which controls texturing and needs to be issued w....
Definition TexMat:40
virtual void apply(State &state) const
Apply texture matrix to OpenGL state.
Matrix _matrix
Definition TexMat:81
META_StateAttribute(osg, TexMat, TEXMAT)
TexMat(const Matrix &matrix)
Definition TexMat:30
void setMatrix(const Matrix &matrix)
Set the texture matrix.
Definition TexMat:56
TexMat(const TexMat &texmat, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition TexMat:33
#define OSG_EXPORT
Definition Export:39