Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Light.h 842B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*! \file include/Light.h
  2. * \brief The GL light class
  3. *
  4. * \author Mongoose
  5. */
  6. #ifndef _LIGHT_H_
  7. #define _LIGHT_H_
  8. #include "MatMath.h"
  9. /*!
  10. * \brief The GL light class
  11. */
  12. class Light {
  13. public:
  14. /*!
  15. * \brief Type a light can be of
  16. */
  17. typedef enum {
  18. typePoint = 1, //!< Point light
  19. typeSpot = 2, //!< Spot light
  20. typeDirectional = 3 //!< Directional light
  21. } LightType;
  22. // These aren't used anywhere? -- xythobuz
  23. //float mAmbient[4]; //! Ambient color
  24. //float mDiffuse[4]; //! Diffuse color
  25. //float mSpecular[4]; //! Specular color
  26. vec4_t mPos; //! Light position in 3 space
  27. vec3_t mDir; //! Light direction
  28. float mAtt;
  29. vec4_t mColor; //! Color of light
  30. vec_t mCutoff; //! Fade out distance
  31. LightType mType; //! Type of light
  32. };
  33. #endif