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

Blending Class Reference
[Scene Graph]

#include <lvt/State.h>

Inheritance diagram for Blending:

Inheritance graph
[legend]
List of all members.

Detailed Description

Controls blending.


Public Member Functions

 Blending (GLenum src=GL_ONE, GLenum dst=GL_ZERO)
 Default constructor.
void Render ()
 Renders the state.
void SetDestinationFactor (GLenum dst)
 Sets the destination factor of the OpenGL blending function.
void SetSourceFactor (GLenum src)
 Sets the source factor of the OpenGL blending function.


Constructor & Destructor Documentation

Blending GLenum  src = GL_ONE,
GLenum  dst = GL_ZERO
 

Default constructor.

Sets the source and destination factors of the blend function to GL_ONE and GL_ZERO, respectively. This is equivalent to no blending.


Member Function Documentation

void Render  )  [virtual]
 

Renders the state.

If the state is enabled, Render() enables OpenGL blending, and sets the source and destination factors of the blending function. If the state is disabled, disables OpenGL blending.

Implements State.

void SetDestinationFactor GLenum  dst  )  [inline]
 

Sets the destination factor of the OpenGL blending function.

void SetSourceFactor GLenum  src  )  [inline]
 

Sets the source factor of the OpenGL blending function.


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