45 #ifndef __GL_LIGHT_H__
46 #define __GL_LIGHT_H__
107 void setColor(
float r,
float g,
float b,
float a=1.0 );
120 void setPosition(
float x,
float y,
float z,
float w=-1.f );
128 void setLightType( LightType lightType );
150 void initGL(
int i, LightSpace space=WORLD )
const;
176 typedef std::vector< GLLight > GLLightVector;
181 typedef GLLightVector::iterator GLLightVectorItr;
186 typedef GLLightVector::const_iterator GLLightVectorCItr;
189 #endif // __GL_LIGHT_H__
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Sets up the proper compiler directives for platform and dll export/import.
void setSpace(LightSpace space)
Sets the space of the camera.
Definition: GLLight.h:135
LightSpace
Defines the space of the camera: world or camera.
Definition: GLLight.h:66
The SceneGraph (SceneGraph) name space, containing all elements to use in a SceneGraph.
The OpenGL light class. Defines a light for the basic OpenGL pipeline.
Definition: GLLight.h:58
LightSpace _space
Space of the light.
Definition: GLLight.h:170
LightType
Defines the type of the light: point or directional.
Definition: GLLight.h:80