Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4735 in orxonox.OLD for orxonox/trunk/src/lib/graphics/light.h


Ignore:
Timestamp:
Jun 30, 2005, 12:41:19 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: lights loadable

File:
1 edited

Legend:

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

    r4734 r4735  
    3333  void loadParams(const TiXmlElement* root);
    3434
    35   void setPosition(const Vector& position);
    36   void setPosition(GLfloat x, GLfloat y, GLfloat z);
    37   Vector getPosition() const;
    38 
    3935  void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b);
    4036  void setSpecularColor(GLfloat r, GLfloat g, GLfloat b);
     
    5450 private:
    5551  int              lightNumber;               //!< The number of this Light.
    56   GLfloat          lightPosition[4];          //!< The Position of this Light.
    5752  GLfloat          diffuseColor[4];           //!< The Diffuse Color this Light emmits.
    5853  GLfloat          specularColor[4];          //!< The specular Color of this Light.
     
    115110
    116111  void loadParams(const TiXmlElement* root);
     112  void loadLights(const TiXmlElement* root);
    117113
    118114  // set Attributes
     
    128124
    129125  //set Attributes
    130   void setPosition(Vector position);
    131   void setPosition(GLfloat x, GLfloat y, GLfloat z);
    132126  void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b);
    133127  void setSpecularColor(GLfloat r, GLfloat g, GLfloat b);
     
    141135
    142136  Light* getLight(int lightNumber) const;
     137  Light* getLight() const { return this->currentLight; };
    143138
    144139  void debug(void) const;
Note: See TracChangeset for help on using the changeset viewer.