Drawable2D.pkg 616 B

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