Drawable.pkg 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. $#include "Drawable.h"
  2. static const unsigned DRAWABLE_GEOMETRY;
  3. static const unsigned DRAWABLE_LIGHT;
  4. static const unsigned DRAWABLE_ZONE;
  5. static const unsigned DRAWABLE_ANY;
  6. static const unsigned DEFAULT_VIEWMASK;
  7. static const unsigned DEFAULT_LIGHTMASK;
  8. static const unsigned DEFAULT_SHADOWMASK;
  9. static const unsigned DEFAULT_ZONEMASK;
  10. static const int MAX_VERTEX_LIGHTS;
  11. static const float ANIMATION_LOD_BASESCALE;
  12. class Drawable : public Component
  13. {
  14. void SetDrawDistance(float distance);
  15. void SetShadowDistance(float distance);
  16. void SetLodBias(float bias);
  17. void SetViewMask(unsigned mask);
  18. void SetLightMask(unsigned mask);
  19. void SetShadowMask(unsigned mask);
  20. void SetZoneMask(unsigned mask);
  21. void SetMaxLights(unsigned num);
  22. void SetCastShadows(bool enable);
  23. void SetOccluder(bool enable);
  24. void SetOccludee(bool enable);
  25. void MarkForUpdate();
  26. const BoundingBox& GetBoundingBox() const;
  27. const BoundingBox& GetWorldBoundingBox();
  28. unsigned char GetDrawableFlags() const;
  29. float GetDrawDistance() const;
  30. float GetShadowDistance() const;
  31. float GetLodBias() const;
  32. unsigned GetViewMask() const;
  33. unsigned GetLightMask() const;
  34. unsigned GetShadowMask() const;
  35. unsigned GetZoneMask() const;
  36. unsigned GetMaxLights() const;
  37. bool GetCastShadows() const;
  38. bool IsOccluder() const;
  39. bool IsOccludee() const;
  40. bool IsInView() const;
  41. bool IsInView(Camera*) const;
  42. Zone* GetZone() const;
  43. tolua_readonly tolua_property__get_set BoundingBox& worldBoundingBox;
  44. tolua_readonly tolua_property__get_set unsigned char drawableFlags;
  45. tolua_property__get_set float drawDistance;
  46. tolua_property__get_set float shadowDistance;
  47. tolua_property__get_set float lodBias;
  48. tolua_property__get_set unsigned viewMask;
  49. tolua_property__get_set unsigned lightMask;
  50. tolua_property__get_set unsigned shadowMask;
  51. tolua_property__get_set unsigned zoneMask;
  52. tolua_property__get_set unsigned maxLights;
  53. tolua_property__get_set bool castShadows;
  54. tolua_property__is_set bool occluder;
  55. tolua_property__is_set bool occludee;
  56. tolua_readonly tolua_property__is_set bool inView;
  57. tolua_readonly tolua_property__get_set Zone* zone;
  58. };