Changeset 4836 in orxonox.OLD for orxonox/trunk/src/lib/graphics/light.cc
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/light.cc
r4746 r4836 45 45 46 46 /** 47 * \param root The XML-element to load the Light from48 49 \todo what to do, if no Light-Slots are open anymore ???47 * @param root The XML-element to load the Light from 48 49 @todo what to do, if no Light-Slots are open anymore ??? 50 50 */ 51 51 Light::Light(const TiXmlElement* root) … … 71 71 72 72 /** 73 \briefdestroys a Light73 * destroys a Light 74 74 */ 75 75 Light::~Light() … … 81 81 82 82 /** 83 * \param root The XML-element to load the Light from83 * @param root The XML-element to load the Light from 84 84 */ 85 85 void Light::loadParams(const TiXmlElement* root) … … 104 104 105 105 /** 106 \briefsets an emitting Diffuse color of this Light107 \param r red108 \param g green109 \param b blue106 * sets an emitting Diffuse color of this Light 107 * @param r red 108 * @param g green 109 * @param b blue 110 110 */ 111 111 void Light::setDiffuseColor(GLfloat r, GLfloat g, GLfloat b) … … 120 120 121 121 /** 122 \briefsets an emitting Specular color of this Light123 \param r red124 \param g green125 \param b blue122 * sets an emitting Specular color of this Light 123 * @param r red 124 * @param g green 125 * @param b blue 126 126 */ 127 127 void Light::setSpecularColor(GLfloat r, GLfloat g, GLfloat b) … … 137 137 138 138 /** 139 \briefSets the AttenuationType of this Light Source140 \param constantAttenuation The Constant Attenuation of the Light141 \param linearAttenuation The Linear Attenuation of the Light142 \param quadraticAttenuation The Quadratic Attenuation of the Light139 * Sets the AttenuationType of this Light Source 140 * @param constantAttenuation The Constant Attenuation of the Light 141 * @param linearAttenuation The Linear Attenuation of the Light 142 * @param quadraticAttenuation The Quadratic Attenuation of the Light 143 143 */ 144 144 void Light::setAttenuation(float constantAttenuation, float linearAttenuation, float quadraticAttenuation) … … 155 155 156 156 /** 157 \briefstets the direction of the Spot Light.158 \param direction The direction of the Spot Light.157 * stets the direction of the Spot Light. 158 * @param direction The direction of the Spot Light. 159 159 */ 160 160 void Light::setSpotDirection(const Vector& direction) … … 169 169 170 170 /** 171 \briefsets the cutoff angle of the Light.172 \param cutoff The cutoff angle.171 * sets the cutoff angle of the Light. 172 * @param cutoff The cutoff angle. 173 173 */ 174 174 void Light::setSpotCutoff(GLfloat cutoff) … … 179 179 180 180 /** 181 \briefdraws this Light. Being a World-entity the possibility to do this lies at hand.181 * draws this Light. Being a World-entity the possibility to do this lies at hand. 182 182 */ 183 183 void Light::draw() const … … 190 190 191 191 /** 192 \briefPrints out some nice formated debug information about the Light192 * Prints out some nice formated debug information about the Light 193 193 */ 194 194 void Light::debug() const … … 213 213 ******************/ 214 214 /** 215 \briefstandard constructor for a Light215 * standard constructor for a Light 216 216 */ 217 217 LightManager::LightManager () … … 228 228 229 229 /** 230 \briefstandard deconstructor230 * standard deconstructor 231 231 232 232 first disables Lighting … … 248 248 249 249 /** 250 \briefsingleton-Reference to the Light-class250 * singleton-Reference to the Light-class 251 251 */ 252 252 LightManager* LightManager::singletonRef = NULL; 253 253 254 254 /** 255 \param root the XML-element to load the LightManager's settings from255 * @param root the XML-element to load the LightManager's settings from 256 256 */ 257 257 void LightManager::loadParams(const TiXmlElement* root) … … 265 265 266 266 /** 267 \param root The XML-element to load Lights from267 * @param root The XML-element to load Lights from 268 268 */ 269 269 void LightManager::loadLights(const TiXmlElement* root) … … 281 281 // set Attributes 282 282 /** 283 \briefsets the ambient Color of the Scene284 \param r red285 \param g green286 \param b blue283 * sets the ambient Color of the Scene 284 * @param r red 285 * @param g green 286 * @param b blue 287 287 */ 288 288 void LightManager::setAmbientColor(GLfloat r, GLfloat g, GLfloat b) … … 297 297 298 298 /** 299 \param light the Light to register to the LightManager299 * @param light the Light to register to the LightManager 300 300 301 301 This is done explicitely by the constructor of a Light … … 314 314 315 315 /** 316 \param light The light to unregister from the LightManager316 * @param light The light to unregister from the LightManager 317 317 318 318 This is done every time a Light is destroyed explicitely by the Light-destructor … … 333 333 334 334 /** 335 \briefdraws all the Lights in their appropriate position335 * draws all the Lights in their appropriate position 336 336 */ 337 337 void LightManager::draw() const … … 346 346 347 347 /** 348 \briefoutputs debug information about the Class and its lights348 * outputs debug information about the Class and its lights 349 349 */ 350 350 void LightManager::debug() const
Note: See TracChangeset
for help on using the changeset viewer.