Drawable.pkg 2.3 KB

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