OpenSceneGraph
3.0.1
|
TexEnvFilter - encapsulates the OpenGL glTexEnv (GL_TEXTURE_FILTER_CONTROL) state. More...
Public Member Functions | |
TexEnvFilter (float lodBias=0.0f) | |
TexEnvFilter (const TexEnvFilter &texenv, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, TexEnvFilter, TEXENVFILTER) | |
virtual bool | isTextureAttribute () const |
Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. | |
virtual int | compare (const StateAttribute &sa) const |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
void | setLodBias (float lodBias) |
float | getLodBias () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~TexEnvFilter () |
Protected Attributes | |
float | _lodBias |
TexEnvFilter - encapsulates the OpenGL glTexEnv (GL_TEXTURE_FILTER_CONTROL) state.
osg::TexEnvFilter::TexEnvFilter | ( | float | lodBias = 0.0f | ) |
osg::TexEnvFilter::TexEnvFilter | ( | const TexEnvFilter & | texenv, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::TexEnvFilter::~TexEnvFilter | ( | ) | [protected, virtual] |
virtual void osg::TexEnvFilter::apply | ( | State & | ) | const [virtual] |
apply the OpenGL state attributes.
The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Reimplemented from osg::StateAttribute.
virtual int osg::TexEnvFilter::compare | ( | const StateAttribute & | sa | ) | const [inline, virtual] |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
float osg::TexEnvFilter::getLodBias | ( | ) | const [inline] |
virtual bool osg::TexEnvFilter::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.
void osg::TexEnvFilter::setLodBias | ( | float | lodBias | ) | [inline] |
float osg::TexEnvFilter::_lodBias [protected] |
![]() | Generated at Sun May 6 2012 20:07:48 for the OpenSceneGraph by doxygen 1.8.0. |