Changeset 4735 in orxonox.OLD for orxonox/trunk/src/lib/graphics/light.h
- Timestamp:
- Jun 30, 2005, 12:41:19 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/light.h
r4734 r4735 33 33 void loadParams(const TiXmlElement* root); 34 34 35 void setPosition(const Vector& position);36 void setPosition(GLfloat x, GLfloat y, GLfloat z);37 Vector getPosition() const;38 39 35 void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b); 40 36 void setSpecularColor(GLfloat r, GLfloat g, GLfloat b); … … 54 50 private: 55 51 int lightNumber; //!< The number of this Light. 56 GLfloat lightPosition[4]; //!< The Position of this Light.57 52 GLfloat diffuseColor[4]; //!< The Diffuse Color this Light emmits. 58 53 GLfloat specularColor[4]; //!< The specular Color of this Light. … … 115 110 116 111 void loadParams(const TiXmlElement* root); 112 void loadLights(const TiXmlElement* root); 117 113 118 114 // set Attributes … … 128 124 129 125 //set Attributes 130 void setPosition(Vector position);131 void setPosition(GLfloat x, GLfloat y, GLfloat z);132 126 void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b); 133 127 void setSpecularColor(GLfloat r, GLfloat g, GLfloat b); … … 141 135 142 136 Light* getLight(int lightNumber) const; 137 Light* getLight() const { return this->currentLight; }; 143 138 144 139 void debug(void) const;
Note: See TracChangeset
for help on using the changeset viewer.