Changeset 4738 in orxonox.OLD for orxonox/trunk/src/lib/graphics/light.h
- Timestamp:
- Jun 30, 2005, 1:29:59 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/light.h
r4737 r4738 69 69 \li new Light(); 70 70 71 if you want to operate on this Light just apply the following functions onto it. 72 (You can also optain the Light-pointer with LightManager::getInstance()->getLight(lightNumber)) 73 71 74 now you can operate on the light as follows: 72 75 \li void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b); … … 78 81 79 82 To redraw the light use 80 \li void draw() const; 81 82 and to delete one just use 83 \li void deleteLight(void); 83 \li void draw() const; (this is automatically done by the LightManager) 84 84 85 85 for some nice output just use: 86 \li void debug(void) const; 87 88 You can also operate on the single Lights themselves, by first retreaving them with 89 \li Light* getLight(int LightNumber) const; 90 \n 91 and then using the same functions on this to change settings. 86 \li void debug(void) const; (either on LightManager for a resume or on any Light for single information.) 92 87 */ 93 88 class LightManager : public BaseObject
Note: See TracChangeset
for help on using the changeset viewer.