Open Source Tomb Raider Engine
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Light.h 682B

123456789101112131415161718192021222324252627282930313233
  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. class Light {
  10. public:
  11. typedef enum {
  12. typePoint = 1,
  13. typeSpot = 2,
  14. typeDirectional = 3
  15. } LightType;
  16. // These aren't used anywhere? -- xythobuz
  17. //float mAmbient[4]; //! Ambient color
  18. //float mDiffuse[4]; //! Diffuse color
  19. //float mSpecular[4]; //! Specular color
  20. vec4_t mPos; //! Light position in 3 space
  21. vec3_t mDir; //! Light direction
  22. float mAtt;
  23. vec4_t mColor; //! Color of light
  24. vec_t mCutoff; //! Fade out distance
  25. LightType mType; //! Type of light
  26. };
  27. #endif