Inheritance diagram for osg::TexEnv:
Public Types | |
DECAL = GL_DECAL | |
MODULATE = GL_MODULATE | |
BLEND = GL_BLEND | |
REPLACE = GL_REPLACE | |
ADD = GL_ADD | |
enum | Mode { DECAL = GL_DECAL, MODULATE = GL_MODULATE, BLEND = GL_BLEND, REPLACE = GL_REPLACE, ADD = GL_ADD } |
Public Member Functions | |
TexEnv (Mode mode=MODULATE) | |
TexEnv (const TexEnv &texenv, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_StateAttribute (osg, TexEnv, TEXENV) | |
virtual bool | isTextureAttribute () const |
virtual int | compare (const StateAttribute &sa) const |
void | setMode (Mode mode) |
Mode | getMode () const |
void | setColor (const Vec4 &color) |
Vec4 & | getColor () |
const Vec4 & | getColor () const |
virtual void | apply (State &state) const |
Protected Member Functions | |
virtual | ~TexEnv (void) |
Protected Attributes | |
Mode | _mode |
osg::Vec4 | _color |
enum osg::TexEnv::Mode |
osg::TexEnv::TexEnv | ( | Mode | mode = MODULATE |
) |
osg::TexEnv::TexEnv | ( | const TexEnv & | texenv, | |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY | |||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::TexEnv::~TexEnv | ( | void | ) | [protected, virtual] |
virtual void osg::TexEnv::apply | ( | State & | state | ) | const [virtual] |
apply the OpenGL state attributes. The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Implements osg::StateAttribute.
virtual int osg::TexEnv::compare | ( | const StateAttribute & | sa | ) | const [inline, virtual] |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
const Vec4& osg::TexEnv::getColor | ( | ) | const [inline] |
Vec4& osg::TexEnv::getColor | ( | ) | [inline] |
Mode osg::TexEnv::getMode | ( | ) | const [inline] |
virtual bool osg::TexEnv::isTextureAttribute | ( | ) | const [inline, virtual] |
Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit.
Reimplemented from osg::StateAttribute.
osg::TexEnv::META_StateAttribute | ( | osg | , | |
TexEnv | , | |||
TEXENV | ||||
) |
void osg::TexEnv::setColor | ( | const Vec4 & | color | ) | [inline] |
void osg::TexEnv::setMode | ( | Mode | mode | ) | [inline] |
osg::Vec4 osg::TexEnv::_color [protected] |
Mode osg::TexEnv::_mode [protected] |