version 3.3

VRS::ColorBufferGL Class Reference

Operations Related to the OpenGL Color Buffer. More...

#include <vrs/opengl/colorbuffergl.h>

Inheritance diagram for VRS::ColorBufferGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  Operations {
  Unused = 1 << 0, SetColorMask = 1 << 1, EnableAlphaTest = 1 << 2, DisableAlphaTest = 1 << 3,
  EnableBlending = 1 << 4, DisableBlending = 1 << 5, EnableScissor = 1 << 6, DisableScissor = 1 << 7,
  EnableMultisampling = 1 << 8, SetShadeModel = 1 << 9, DisableMultisampling = 1 << 10, EnableAlpha2Coverage = 1 << 11,
  DisableAlpha2Coverage = 1 << 12
}

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (Operations)
 ColorBufferGL (int ops)
bool operator== (const ColorBufferGL &other) const
void enableOperation (int flagToBeAdded)
void disableOperation (int flagToBeRemoved)
int getOperations () const
void setColorMask (bool red, bool green, bool blue, bool alpha)
int getColorMask () const
void setAlphaFunction (GLenum fct)
GLenum getAlphaFunction () const
void setAlpha (double alpha)
double getAlpha () const
void setScissor (const Area &area)
void setScissor (int x, int y, int width, int height)
Area getScissor () const
void setSourceBlend (GLenum mode)
GLenum getSourceBlend () const
void setDestinationBlend (GLenum mode)
GLenum getDestinationBlend () const
 Blending mode: GL_ZERO, GL_ONE, GL_ONE_MINUS_SRC etc.
void setFlatShading (bool onOff)
bool getFlatShading () const
 Set/get flat shading / smooth shading.
 VRS_TYPEINFO (ColorBufferGL, MonoAttribute)
 VRS_SERIALIZABLE (ColorBufferGL)

Static Public Member Functions

static ColorBufferGLnewAlphaTest (bool enable, GLenum fct=GL_ALWAYS, double refAlpha=1.0)
static ColorBufferGLnewBlending (bool enable, GLenum srcFactor=GL_DST_COLOR, GLenum dstFactor=GL_ZERO)
static ColorBufferGLnewLock (bool red, bool green, bool blue, bool alpha)
static ColorBufferGLnewFlatShading (bool enable)
static ColorBufferGLnewScissorTest (bool enable, const VRS::Area &region=VRS::Area())

Protected Member Functions

 ColorBufferGL ()


Detailed Description

Operations Related to the OpenGL Color Buffer.

Member Enumeration Documentation

Enumerator:
Unused 
SetColorMask 
EnableAlphaTest 
DisableAlphaTest 
EnableBlending 
DisableBlending 
EnableScissor 
DisableScissor 
EnableMultisampling 
SetShadeModel 
DisableMultisampling 
EnableAlpha2Coverage 
DisableAlpha2Coverage 


Constructor & Destructor Documentation

VRS::ColorBufferGL::ColorBufferGL ( int  ops  ) 

This attribute allows you to specify OpenGL color buffer settings. You can specify several settings with one attribute.

Functionality for clearing the color buffer is provided by the FrameBufferGL attribute.

VRS::ColorBufferGL::ColorBufferGL (  )  [protected]


Member Function Documentation

VRS::ColorBufferGL::VRS_SERIALIZABLE_CLASS_ENUM ( Operations   ) 

bool VRS::ColorBufferGL::operator== ( const ColorBufferGL other  )  const

void VRS::ColorBufferGL::enableOperation ( int  flagToBeAdded  ) 

void VRS::ColorBufferGL::disableOperation ( int  flagToBeRemoved  ) 

int VRS::ColorBufferGL::getOperations (  )  const [inline]

void VRS::ColorBufferGL::setColorMask ( bool  red,
bool  green,
bool  blue,
bool  alpha 
)

int VRS::ColorBufferGL::getColorMask (  )  const [inline]

void VRS::ColorBufferGL::setAlphaFunction ( GLenum  fct  ) 

GLenum VRS::ColorBufferGL::getAlphaFunction (  )  const [inline]

void VRS::ColorBufferGL::setAlpha ( double  alpha  ) 

double VRS::ColorBufferGL::getAlpha (  )  const [inline]

void VRS::ColorBufferGL::setScissor ( const Area area  ) 

void VRS::ColorBufferGL::setScissor ( int  x,
int  y,
int  width,
int  height 
)

Area VRS::ColorBufferGL::getScissor (  )  const [inline]

void VRS::ColorBufferGL::setSourceBlend ( GLenum  mode  ) 

GLenum VRS::ColorBufferGL::getSourceBlend (  )  const [inline]

void VRS::ColorBufferGL::setDestinationBlend ( GLenum  mode  ) 

GLenum VRS::ColorBufferGL::getDestinationBlend (  )  const [inline]

Blending mode: GL_ZERO, GL_ONE, GL_ONE_MINUS_SRC etc.

void VRS::ColorBufferGL::setFlatShading ( bool  onOff  ) 

bool VRS::ColorBufferGL::getFlatShading (  )  const [inline]

Set/get flat shading / smooth shading.

static ColorBufferGL* VRS::ColorBufferGL::newAlphaTest ( bool  enable,
GLenum  fct = GL_ALWAYS,
double  refAlpha = 1.0 
) [static]

static ColorBufferGL* VRS::ColorBufferGL::newBlending ( bool  enable,
GLenum  srcFactor = GL_DST_COLOR,
GLenum  dstFactor = GL_ZERO 
) [static]

static ColorBufferGL* VRS::ColorBufferGL::newLock ( bool  red,
bool  green,
bool  blue,
bool  alpha 
) [static]

static ColorBufferGL* VRS::ColorBufferGL::newFlatShading ( bool  enable  )  [static]

static ColorBufferGL* VRS::ColorBufferGL::newScissorTest ( bool  enable,
const VRS::Area region = VRS::Area() 
) [static]

VRS::ColorBufferGL::VRS_TYPEINFO ( ColorBufferGL  ,
MonoAttribute   
)

VRS::ColorBufferGL::VRS_SERIALIZABLE ( ColorBufferGL   ) 


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

Generated on Mon May 21 06:00:20 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact