Drawable2D.pkg 619 B

123456789101112131415161718192021222324
  1. $#include "Drawable2D.h"
  2. enum BlendMode {};
  3. const float PIXEL_SIZE;
  4. class Drawable2D : public Drawable
  5. {
  6. public:
  7. void SetLayer(int layer);
  8. void SetOrderInLayer(int orderInLayer);
  9. void SetTexture(Texture2D* texture);
  10. void SetBlendMode(BlendMode mode);
  11. int GetLayer() const;
  12. int GetOrderInLayer() const;
  13. Texture2D* GetTexture() const;
  14. BlendMode GetBlendMode() const;
  15. tolua_property__get_set int layer;
  16. tolua_property__get_set int orderInLayer;
  17. tolua_property__get_set Texture2D* texture;
  18. tolua_property__get_set BlendMode blendMode;
  19. };