Changeset 3441 in orxonox.OLD for orxonox/trunk/src/light.h
- Timestamp:
- Mar 1, 2005, 9:24:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/light.h
r3440 r3441 15 15 16 16 #define NUMBEROFLIGHTS GL_MAX_LIGHTS 17 18 enum AttenuationType {CONSTANT, LINEAR, QUADRATIC}; 17 19 18 20 // FORWARD DEFINITIONS // … … 34 36 GLfloat diffuseColor[4]; //!< The Diffuse Color this Light emmits. 35 37 GLfloat specularColor[4]; //!< The specular Color of this Light. 36 GLint attenuationType; //!< The AttenuationType of this Light. \todo implements this; 38 AttenuationType attenuationType;//!< The AttenuationType of this Light. 39 float attenuationFactor; //!< the Factor the attenuation should have. 37 40 38 41 LightValue* next; … … 64 67 void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b); 65 68 void setSpecularColor(GLfloat r, GLfloat g, GLfloat b); 69 void setAttenuation(AttenuationType type, float factor); 66 70 void setAmbientColor(GLfloat r, GLfloat g, GLfloat b); 67 71 // get Attributes
Note: See TracChangeset
for help on using the changeset viewer.