14#ifndef OSG_COLORMATRIX
15#define OSG_COLORMATRIX 1
#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
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition ColorMatrix:37
Matrix _matrix
Definition ColorMatrix:65
ColorMatrix(const ColorMatrix &cm, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition ColorMatrix:30
virtual ~ColorMatrix(void)
void setMatrix(const Matrix &matrix)
Sets the color matrix.
Definition ColorMatrix:50
Matrix & getMatrix()
Gets the color matrix.
Definition ColorMatrix:53
const Matrix & getMatrix() const
Gets the const color matrix.
Definition ColorMatrix:56
META_StateAttribute(osg, ColorMatrix, COLORMATRIX)
virtual void apply(State &state) const
Applies as OpenGL texture matrix.
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
@ COLORMATRIX
Definition StateAttribute:160
#define OSG_EXPORT
Definition Export:39