Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Light.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
  2. /*================================================================
  3. *
  4. * Project : Freyja
  5. * Author : Terry 'Mongoose' Hendrix II
  6. * Website : http://www.westga.edu/~stu7440/
  7. * Email : stu7440@westga.edu
  8. * Object : Light
  9. * License : No use w/o permission (C) 2002 Mongoose
  10. * Comments: This is the GL light class
  11. *
  12. *
  13. * This file was generated using Mongoose's C++
  14. * template generator script. <stu7440@westga.edu>
  15. *
  16. *-- History ------------------------------------------------
  17. *
  18. * 2002.01.27:
  19. * Mongoose - Created
  20. ================================================================*/
  21. #ifndef __FREYJA_MONGOOSE_LIGHT_H_
  22. #define __FREYJA_MONGOOSE_LIGHT_H_
  23. #include <MatMath.h>
  24. class Light
  25. {
  26. public:
  27. typedef enum
  28. {
  29. typePoint = 1,
  30. typeSpot = 2,
  31. typeDirectional = 3
  32. } FreyjaLightType;
  33. float mAmbient[4]; /* Ambient color */
  34. float mDiffuse[4]; /* Diffuse color */
  35. float mSpecular[4]; /* Specular color */
  36. vec4_t mPos; /* Light position in 3 space */
  37. vec3_t mDir; /* Light direction */
  38. float mAtt; /* */
  39. vec4_t mColor; /* Color of light */
  40. vec_t mCutoff; /* Fade out distance */
  41. FreyjaLightType mType; /* Type of light */
  42. private:
  43. //unsigned int mFlags; /* Flags for this light */
  44. //unsigned int mId; /* Unique identifier of this light */
  45. //char *mName; /* Light name */
  46. };
  47. #endif