osg::TexEnv Class Reference

TexEnv encapsulates the OpenGL glTexEnv (texture environment) state. More...

Inheritance diagram for osg::TexEnv:

Inheritance graph
[legend]

List of all members.

Public Types

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 &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, TexEnv, TEXENV)
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 setMode (Mode mode)
Mode getMode () const
void setColor (const Vec4 &color)
Vec4getColor ()
const Vec4getColor () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.

Protected Member Functions

virtual ~TexEnv (void)

Protected Attributes

Mode _mode
osg::Vec4 _color


Detailed Description

TexEnv encapsulates the OpenGL glTexEnv (texture environment) state.

Member Enumeration Documentation

enum osg::TexEnv::Mode

Enumerator:
DECAL 
MODULATE 
BLEND 
REPLACE 
ADD 


Constructor & Destructor Documentation

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]


Member Function Documentation

osg::TexEnv::META_StateAttribute ( osg  ,
TexEnv  ,
TEXENV   
)

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.

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.

void osg::TexEnv::setMode ( Mode  mode  )  [inline]

Mode osg::TexEnv::getMode (  )  const [inline]

void osg::TexEnv::setColor ( const Vec4 color  )  [inline]

Vec4& osg::TexEnv::getColor (  )  [inline]

const Vec4& osg::TexEnv::getColor (  )  const [inline]

virtual void osg::TexEnv::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.


Member Data Documentation

Mode osg::TexEnv::_mode [protected]

osg::Vec4 osg::TexEnv::_color [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:17 2007 for the OpenSceneGraph by doxygen 1.5.3.