Counter Strike : Global Offensive Source Code
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.

60 lines
1.7 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // A class representing a world node
  4. //
  5. //=============================================================================
  6. #ifndef DMEWORLDLIGHTS_H
  7. #define DMEWORLDLIGHTS_H
  8. #ifdef COMPILER_MSVC
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmelement.h"
  12. //-----------------------------------------------------------------------------
  13. // Light types
  14. //-----------------------------------------------------------------------------
  15. class CDmeWorldPointLight : public CDmElement
  16. {
  17. DEFINE_ELEMENT( CDmeWorldPointLight, CDmElement );
  18. public:
  19. CDmaString m_lightName;
  20. CDmaVar< Vector > m_vOrigin;
  21. CDmaVar< Vector > m_vColor;
  22. CDmaVar< float > m_flRadius;
  23. CDmaVar< Vector > m_vAttenuation;
  24. };
  25. class CDmeWorldHemiLight : public CDmElement
  26. {
  27. DEFINE_ELEMENT( CDmeWorldHemiLight, CDmElement );
  28. public:
  29. CDmaString m_lightName;
  30. CDmaVar< Vector4D > m_vTransform0; // Direction is z column
  31. CDmaVar< Vector4D > m_vTransform1; // Direction is z column
  32. CDmaVar< Vector4D > m_vTransform2; // Direction is z column
  33. CDmaVar< Vector > m_vColor;
  34. CDmaVar< float > m_flRadius;
  35. CDmaVar< Vector > m_vAttenuation;
  36. };
  37. class CDmeWorldSpotLight : public CDmElement
  38. {
  39. DEFINE_ELEMENT( CDmeWorldSpotLight, CDmElement );
  40. public:
  41. CDmaString m_lightName;
  42. CDmaVar< Vector4D > m_vTransform0; // Direction is z column
  43. CDmaVar< Vector4D > m_vTransform1; // Direction is z column
  44. CDmaVar< Vector4D > m_vTransform2; // Direction is z column
  45. CDmaVar< Vector > m_vColor;
  46. CDmaVar< float > m_flRadius;
  47. CDmaVar< Vector > m_vAttenuation;
  48. CDmaVar< float > m_flCosSpot;
  49. };
  50. #endif // DMEWORLDLIGHTS_H