RenderTools::Stateset Class Reference

#include <Stateset.h>

Inheritance diagram for RenderTools::Stateset:

RenderTools::BindingInterface RenderTools::AbstractPropertyContainer RenderTools::ContainerProperty RenderTools::AbstractProperty RenderTools::InitializeInterface

List of all members.

Public Types

enum  StateComponents {
  NONE = 0x0000, CURRENT_COLOR = 0x0001, CLEAR_COLOR = 0x0002, COLOR_MASK = 0x0004,
  TEXTURE = 0x0008, BLEND = 0x0010, ALPHA_TEST = 0x0020, DEPTH_TEST = 0x0080,
  DEPTH_MASK = 0x0200, LINE_WIDTH = 0x2000, POINT_SIZE = 0x4000, ALL = 0xFFFFF
}
typedef unsigned int StateMask

Public Member Functions

 Stateset (void)
virtual void createProperties (void)
virtual const string getTypeName (bool ofComponent=false) const
virtual void onInitialize (void)
virtual void onBind (int unit)
virtual void onUnbind (int unit)
Statesetoperator= (const Stateset &other)
Statesetoperator|= (const Stateset &other)
Statesetoperator&= (const Stateset &other)
void setCurrentColor (GLfloat *currentColor)
void setCurrentColor (Vec4 currentColor=Vec4(0.0f, 0.0f, 0.0f, 0.0f))
void setClearColor (GLfloat *clearColor)
void setClearColor (Vec4 clearColor=Vec4(0.0f, 0.0f, 0.0f, 0.0f))
void setTexture (GLboolean texture=GL_TRUE)
void setBlend (GLboolean blend=GL_TRUE)
void setColorMask (GLboolean redMask=GL_TRUE, GLboolean greenMask=GL_TRUE, GLboolean blueMask=GL_TRUE, GLboolean alphaMask=GL_TRUE)
void setAlphaTest (GLboolean alphaTest=GL_FALSE)
void setDepthTest (GLboolean depthTest=GL_TRUE)
void setDepthMask (GLboolean depthMask=GL_TRUE)
void setLineWidth (GLfloat width=1.0f)
void setPointSize (GLfloat size=1.0f)

Static Public Member Functions

static PropertyPtr create (const XMLNodePtr &xml=XMLNodePtr())

Public Attributes

StateMask mask
Vec4 currentColor
Vec4 clearColor
GLboolean texture
GLboolean blend
GLboolean redMask
GLboolean greenMask
GLboolean blueMask
GLboolean alphaMask
GLboolean alphaTest
GLboolean depthMask
GLboolean depthTest
GLfloat lineWidth
GLfloat pointSize


Detailed Description

Definition at line 21 of file Stateset.h.


Member Typedef Documentation

typedef unsigned int RenderTools::Stateset::StateMask

Definition at line 23 of file Stateset.h.


Member Enumeration Documentation

Enumerator:
NONE 
CURRENT_COLOR 
CLEAR_COLOR 
COLOR_MASK 
TEXTURE 
BLEND 
ALPHA_TEST 
DEPTH_TEST 
DEPTH_MASK 
LINE_WIDTH 
POINT_SIZE 
ALL 

Definition at line 24 of file Stateset.h.


Constructor & Destructor Documentation

RenderTools::Stateset::Stateset ( void   ) 

Definition at line 7 of file Stateset.cpp.


Member Function Documentation

PropertyPtr RenderTools::Stateset::create ( const XMLNodePtr xml = XMLNodePtr()  )  [static]

Definition at line 45 of file Stateset.cpp.

void RenderTools::Stateset::createProperties ( void   )  [virtual]

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 53 of file Stateset.cpp.

const string RenderTools::Stateset::getTypeName ( bool  ofComponent = false  )  const [virtual]

Reimplemented from RenderTools::ContainerProperty.

Definition at line 141 of file Stateset.cpp.

void RenderTools::Stateset::onBind ( int  unit  )  [virtual]

Implements RenderTools::BindingInterface.

Definition at line 145 of file Stateset.cpp.

void RenderTools::Stateset::onInitialize ( void   )  [virtual]

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 277 of file Stateset.cpp.

void RenderTools::Stateset::onUnbind ( int  unit  )  [virtual]

Implements RenderTools::BindingInterface.

Definition at line 281 of file Stateset.cpp.

Stateset& RenderTools::Stateset::operator&= ( const Stateset other  )  [inline]

Definition at line 136 of file Stateset.h.

Stateset& RenderTools::Stateset::operator= ( const Stateset other  )  [inline]

Definition at line 62 of file Stateset.h.

Stateset& RenderTools::Stateset::operator|= ( const Stateset other  )  [inline]

Definition at line 99 of file Stateset.h.

void RenderTools::Stateset::setAlphaTest ( GLboolean  alphaTest = GL_FALSE  )  [inline]

Definition at line 217 of file Stateset.h.

void RenderTools::Stateset::setBlend ( GLboolean  blend = GL_TRUE  )  [inline]

Definition at line 199 of file Stateset.h.

void RenderTools::Stateset::setClearColor ( Vec4  clearColor = Vec4( 0.0f, 0.0f, 0.0f, 0.0f )  )  [inline]

Definition at line 191 of file Stateset.h.

void RenderTools::Stateset::setClearColor ( GLfloat *  clearColor  )  [inline]

Definition at line 184 of file Stateset.h.

void RenderTools::Stateset::setColorMask ( GLboolean  redMask = GL_TRUE,
GLboolean  greenMask = GL_TRUE,
GLboolean  blueMask = GL_TRUE,
GLboolean  alphaMask = GL_TRUE 
) [inline]

Definition at line 210 of file Stateset.h.

void RenderTools::Stateset::setCurrentColor ( Vec4  currentColor = Vec4( 0.0f, 0.0f, 0.0f, 0.0f )  )  [inline]

Definition at line 180 of file Stateset.h.

void RenderTools::Stateset::setCurrentColor ( GLfloat *  currentColor  )  [inline]

Definition at line 173 of file Stateset.h.

void RenderTools::Stateset::setDepthMask ( GLboolean  depthMask = GL_TRUE  )  [inline]

Definition at line 238 of file Stateset.h.

void RenderTools::Stateset::setDepthTest ( GLboolean  depthTest = GL_TRUE  )  [inline]

Definition at line 228 of file Stateset.h.

void RenderTools::Stateset::setLineWidth ( GLfloat  width = 1.0f  )  [inline]

Definition at line 259 of file Stateset.h.

void RenderTools::Stateset::setPointSize ( GLfloat  size = 1.0f  )  [inline]

Definition at line 263 of file Stateset.h.

void RenderTools::Stateset::setTexture ( GLboolean  texture = GL_TRUE  )  [inline]

Definition at line 195 of file Stateset.h.


Member Data Documentation

Definition at line 281 of file Stateset.h.

Definition at line 282 of file Stateset.h.

Definition at line 273 of file Stateset.h.

Definition at line 280 of file Stateset.h.

Definition at line 271 of file Stateset.h.

Definition at line 270 of file Stateset.h.

Definition at line 287 of file Stateset.h.

Definition at line 288 of file Stateset.h.

Definition at line 279 of file Stateset.h.

Definition at line 300 of file Stateset.h.

Definition at line 269 of file Stateset.h.

Definition at line 301 of file Stateset.h.

Definition at line 278 of file Stateset.h.

Definition at line 272 of file Stateset.h.


The documentation for this class was generated from the following files:

Generated on Wed Jan 26 00:15:37 2011 for RenderTools by  doxygen 1.5.8