Drawable.pkg 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 SetShaderParameter(const String name, const Variant& value);
  27. void RemoveShaderParameter(const String name);
  28. void MarkForUpdate();
  29. const BoundingBox& GetBoundingBox() const;
  30. const BoundingBox& GetWorldBoundingBox();
  31. const Variant& GetShaderParameter(const String name) const;
  32. unsigned char GetDrawableFlags() const;
  33. float GetDrawDistance() const;
  34. float GetShadowDistance() const;
  35. float GetLodBias() const;
  36. unsigned GetViewMask() const;
  37. unsigned GetLightMask() const;
  38. unsigned GetShadowMask() const;
  39. unsigned GetZoneMask() const;
  40. unsigned GetMaxLights() const;
  41. bool GetCastShadows() const;
  42. bool IsOccluder() const;
  43. bool IsOccludee() const;
  44. bool IsInView() const;
  45. bool IsInView(Camera*) const;
  46. Zone* GetZone() const;
  47. tolua_readonly tolua_property__get_set BoundingBox& worldBoundingBox;
  48. tolua_readonly tolua_property__get_set unsigned char drawableFlags;
  49. tolua_property__get_set float drawDistance;
  50. tolua_property__get_set float shadowDistance;
  51. tolua_property__get_set float lodBias;
  52. tolua_property__get_set unsigned viewMask;
  53. tolua_property__get_set unsigned lightMask;
  54. tolua_property__get_set unsigned shadowMask;
  55. tolua_property__get_set unsigned zoneMask;
  56. tolua_property__get_set unsigned maxLights;
  57. tolua_property__get_set bool castShadows;
  58. tolua_property__is_set bool occluder;
  59. tolua_property__is_set bool occludee;
  60. tolua_readonly tolua_property__is_set bool inView;
  61. tolua_readonly tolua_property__get_set Zone* zone;
  62. };