Changeset 3446 in orxonox.OLD for orxonox/trunk/src/light.h
- Timestamp:
- Mar 2, 2005, 11:12:55 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/light.h
r3444 r3446 14 14 #include "glincl.h" 15 15 16 //! The maximum number of Lights this OpenGL-implementation supports 16 17 #define NUMBEROFLIGHTS GL_MAX_LIGHTS 17 18 19 //! Enumerator for the attenuation-Type. 20 /** 21 CONSTANT means GL_CONSTANT_ATTENUATION 22 LINEAR means GL_LINEAR_ATTENUATION 23 QUADRATIC means GL_QUADRATIC_ATTENUATION 24 */ 18 25 enum AttenuationType {CONSTANT, LINEAR, QUADRATIC}; 19 26 … … 33 40 int lightNumber; //!< The number of this Light. 34 41 GLfloat lightPosition[4]; //!< The Position of this Light. 35 GLfloat lmodelAmbient[4]; //!< The general Ambient Color.36 42 GLfloat diffuseColor[4]; //!< The Diffuse Color this Light emmits. 37 43 GLfloat specularColor[4]; //!< The specular Color of this Light. … … 47 53 48 54 void init(int LightNumber); 49 LightValue** lights; 50 LightValue* currentLight; 55 LightValue** lights; //!< An array of Lenght NUMBEROFLIGHTS, that holds pointers to all LightValues. 56 LightValue* currentLight; //!< The current Light, we are working with. 51 57 52 58 public: … … 69 75 // get Attributes 70 76 Vector getPosition(void); 71 //! \returns the Position of Light \param lightNumber lightnumber 77 /** 78 \returns the Position of Light 79 \param lightNumber lightnumber 80 */ 72 81 inline Vector getPosition(int lightNumber) 73 82 {
Note: See TracChangeset
for help on using the changeset viewer.