version 3.3

VRS::LightModelGL Class Reference

Operations Manipulating the OpenGL Lighting. More...

#include <vrs/opengl/lightmodelgl.h>

Inheritance diagram for VRS::LightModelGL:

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

List of all members.

Public Types

enum  Operations {
  EnableLighting = 1, DisableLighting = 2, EnableTwoSided = 4, DisableTwoSided = 8,
  EnableLocalViewer = 16, DisableLocalViewer = 32, SetAmbientLight = 64
}

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (Operations)
 LightModelGL (int ops, const Color &ambient=Color::black)
 LightModelGL (bool lightingOn)
bool operator== (const LightModelGL &other) const
void enableOperation (int flagToBeAdded)
void disableOperation (int flagToBeRemoved)
int getOperations () const
void setAmbientLight (const Color &color)
Color getAmbientLight () const
 Set/get the ambient light of a scene.
 VRS_TYPEINFO (LightModelGL, MonoAttribute)


Detailed Description

Operations Manipulating the OpenGL Lighting.

Member Enumeration Documentation

Enumerator:
EnableLighting 
DisableLighting 
EnableTwoSided 
DisableTwoSided 
EnableLocalViewer 
DisableLocalViewer 
SetAmbientLight 


Constructor & Destructor Documentation

VRS::LightModelGL::LightModelGL ( int  ops,
const Color ambient = Color::black 
)

VRS::LightModelGL::LightModelGL ( bool  lightingOn  ) 

Attribute to switch lighting on or off, set whether front and backfacing faces should be lightened, and set the color of the ambient light. For convenience, an ctor for disabling/enabling lighting is provided.


Member Function Documentation

VRS::LightModelGL::VRS_SERIALIZABLE_CLASS_ENUM ( Operations   ) 

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

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

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

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

Set/get operations to be performed when the attribute is pushed to an engine.

void VRS::LightModelGL::setAmbientLight ( const Color color  ) 

Color VRS::LightModelGL::getAmbientLight (  )  const [inline]

Set/get the ambient light of a scene.

VRS::LightModelGL::VRS_TYPEINFO ( LightModelGL  ,
MonoAttribute   
)


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

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