Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

State Class Reference
[Scene Graph]

#include <lvt/State.h>

Inheritance diagram for State:

Inheritance graph
[legend]
List of all members.

Detailed Description

Changes, enables, or disables part of the OpenGL state.


Public Member Functions

void Disable ()
 Disables the State.
void Enable ()
 Enables the State.
bool IsEnabled () const
 Returns true if the State is enabled, false if it is not.
virtual void Render ()=0
 Activates the State.
 State ()
 Default constructor.


Constructor & Destructor Documentation

State  )  [inline]
 

Default constructor.

Enables the State.


Member Function Documentation

void Disable  )  [inline]
 

Disables the State.

void Enable  )  [inline]
 

Enables the State.

bool IsEnabled  )  const [inline]
 

Returns true if the State is enabled, false if it is not.

Note that this does not return the current value of the portion of OpenGL state that the object represents. That is, this is not a wrapper around glGet*(). If a State object is enabled, it will enable and set the corresponding piece of OpenGL state when it is rendered.

virtual void Render  )  [pure virtual]
 

Activates the State.

If the State is enabled, the corresponding piece of OpenGL state is enabled and its value is set, if appropriate. If the State object is disabled, the corresponding piece of OpenGL state is disabled.

Implements Node.

Implemented in Shader, Blending, MatrixMode, Culling, DepthTest, StencilTest, TextureState, TexGen, TexEnv, Texture, Texture1D, and Texture2D.


Generated on Thu Feb 17 09:45:48 2005 for liblvt by  doxygen 1.4.1