hkxLight.h
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:2k
源码类别:

其他游戏

开发平台:

Visual C++

  1. /* 
  2.  * 
  3.  * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
  4.  * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
  5.  * Level 2 and Level 3 source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2009 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
  6.  * 
  7.  */
  8. #ifndef HKSCENEDATA_LIGHT_HKXLIGHT_HKCLASS_H
  9. #define HKSCENEDATA_LIGHT_HKXLIGHT_HKCLASS_H
  10. /// hkxLight meta information
  11. extern const class hkClass hkxLightClass;
  12. /// The information needed to construct a simple light.
  13. class hkxLight
  14. {
  15. public:
  16. HK_DECLARE_NONVIRTUAL_CLASS_ALLOCATOR( HK_MEMORY_CLASS_SCENE_DATA, hkxLight );
  17. HK_DECLARE_REFLECTION();
  18. /// Used to specify the type of the light.
  19. enum LightType
  20. {
  21. /// 
  22. POINT_LIGHT,
  23. /// 
  24. DIRECTIONAL_LIGHT,
  25. /// 
  26. SPOT_LIGHT
  27. };
  28. //
  29. // Members
  30. //
  31. public:
  32. /// The type of the light.
  33. hkEnum<LightType, hkInt8> m_type;
  34. /// The position (used for point and spot lights).
  35. hkVector4 m_position;
  36. /// The direction(used for directional and spot lights).
  37. hkVector4 m_direction;
  38. /// The RGB value of the light color.
  39. hkUint32 m_color;
  40. /// The angle, in radians of the spot light (full extent).
  41. hkReal m_angle;
  42. };
  43. #endif // HKSCENEDATA_LIGHT_HKXLIGHT_HKCLASS_H
  44. /*
  45. * Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20090216)
  46. * Confidential Information of Havok.  (C) Copyright 1999-2009
  47. * Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
  48. * Logo, and the Havok buzzsaw logo are trademarks of Havok.  Title, ownership
  49. * rights, and intellectual property rights in the Havok software remain in
  50. * Havok and/or its suppliers.
  51. * Use of this software for evaluation purposes is subject to and indicates
  52. * acceptance of the End User licence Agreement for this product. A copy of
  53. * the license is included with this software and is also available at www.havok.com/tryhavok.
  54. */