Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 3, 2005, 5:56:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: light: added ability to generate a spot light

File:
1 edited

Legend:

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

    r3446 r3453  
    4343    GLfloat specularColor[4];   //!< The specular Color of this Light.
    4444    AttenuationType attenuationType;//!< The AttenuationType of this Light.
    45     float attenuationFactor;    //!< the Factor the attenuation should have.
     45    float attenuationFactor;    //!< The Factor the attenuation should have.
     46    GLfloat spotDirection[4];   //!< The direction of the Spot Light.
     47    GLfloat spotCutoff;         //!< The cutoff Angle of the Light Source
    4648  };
    4749
     
    7375  void setAttenuation(AttenuationType type, float factor);
    7476  void setAmbientColor(GLfloat r, GLfloat g, GLfloat b);
     77  void setSpotDirection(Vector direction);
     78  void setSpotCutoff(GLfloat cutoff);
     79
    7580  // get Attributes
    7681  Vector getPosition(void);
Note: See TracChangeset for help on using the changeset viewer.