Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 1, 2005, 9:24:44 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: implemented attenuation

File:
1 edited

Legend:

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

    r3440 r3441  
    1515
    1616#define NUMBEROFLIGHTS GL_MAX_LIGHTS
     17
     18enum AttenuationType {CONSTANT, LINEAR, QUADRATIC};
    1719
    1820// FORWARD DEFINITIONS //
     
    3436    GLfloat diffuseColor[4];    //!< The Diffuse Color this Light emmits.
    3537    GLfloat specularColor[4];   //!< The specular Color of this Light.
    36     GLint attenuationType;      //!< The AttenuationType of this Light. \todo implements this;
     38    AttenuationType attenuationType;//!< The AttenuationType of this Light.
     39    float attenuationFactor;    //!< the Factor the attenuation should have.
    3740
    3841    LightValue* next;
     
    6467  void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b);
    6568  void setSpecularColor(GLfloat r, GLfloat g, GLfloat b);
     69  void setAttenuation(AttenuationType type, float factor);
    6670  void setAmbientColor(GLfloat r, GLfloat g, GLfloat b);
    6771  // get Attributes
Note: See TracChangeset for help on using the changeset viewer.