Drawable2D.pkg 723 B

12345678910111213141516171819202122232425
  1. $#include "Drawable2D.h"
  2. enum BlendMode {};
  3. class Drawable2D : public Drawable
  4. {
  5. public:
  6. void SetPixelsPerUnit(float pixelsPerUnit);
  7. void SetSprite(Sprite2D* sprite);
  8. void SetMaterial(Material* material);
  9. void SetBlendMode(BlendMode mode);
  10. void SetZValue(float zValue);
  11. float GetPixelsPerUnit() const;
  12. Sprite2D* GetSprite() const;
  13. Material* GetMaterial() const;
  14. BlendMode GetBlendMode() const;
  15. float GetZValue() const;
  16. tolua_property__get_set float pixelsPerUnit;
  17. tolua_property__get_set Sprite2D* sprite;
  18. tolua_property__get_set Material* material;
  19. tolua_property__get_set BlendMode blendMode;
  20. tolua_property__get_set float zValue;
  21. };