Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3598 in orxonox.OLD for orxonox/trunk/src/light.h


Ignore:
Timestamp:
Mar 18, 2005, 12:00:42 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: doxygen-tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/light.h

    r3597 r3598  
    1414#include "glincl.h"
    1515
    16 //! The maximum number of Lights this OpenGL-implementation supports
     16//! The maximum number of Lights this OpenGL-implementation supports.
    1717#define NUMBEROFLIGHTS GL_MAX_LIGHTS
    1818
     
    2020class Vector;
    2121
    22 //! A struct that holds information about a Light
     22//! A class that handles Lights. The LightManager operates on this.
    2323class Light : public WorldEntity
    2424{
    2525 public:
    2626  Light(int lightNumber);
    27   ~Light(void);
     27  virtual ~Light(void);
    2828
    2929  void setPosition(Vector position);
     
    3535  void setSpotCutoff(GLfloat cutoff);
    3636
     37  Vector getPosition();
     38  /** \returns the lightNumber*/
     39  int getLightNumber(void) {return this->lightNumber;}
     40 
    3741  virtual void draw();
    3842
     43  void debug(void);
     44
    3945  // attributes
    40 
     46 private:
    4147  int lightNumber;            //!< The number of this Light.
    4248  GLfloat lightPosition[4];   //!< The Position of this Light.
     
    4854  GLfloat spotDirection[4];   //!< The direction of the Spot Light.
    4955  GLfloat spotCutoff;         //!< The cutoff Angle of the Light Source
    50 
    51   void debug(void);
    5256};
    5357
     
    8185  void setAmbientColor(GLfloat r, GLfloat g, GLfloat b);
    8286
     87  void draw();
     88
    8389  //set Attributes
    8490  void setPosition(Vector position);
     
    9298  // get Attributes
    9399  Vector getPosition(void);
    94   /**
    95      \returns the Position of Light
    96      \param lightNumber lightnumber
    97   */
    98   inline Vector getPosition(int lightNumber)
    99     {
    100       if (!this->lights[lightNumber])
    101         return Vector(.0,.0,.0);
    102       return Vector(this->lights[lightNumber]->lightPosition[0],
    103                     this->lights[lightNumber]->lightPosition[1],
    104                     this->lights[lightNumber]->lightPosition[2]);
    105     }
    106 
     100  Vector getPosition(int lightNumber);
     101 
    107102  void debug(void);
    108103};
Note: See TracChangeset for help on using the changeset viewer.