StaticSprite2D.pkg 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $#include "Urho2D/StaticSprite2D.h"
  2. class StaticSprite2D : public Drawable2D
  3. {
  4. public:
  5. void SetSprite(Sprite2D* sprite);
  6. void SetBlendMode(BlendMode mode);
  7. void SetFlip(bool flipX, bool flipY);
  8. void SetFlipX(bool flipX);
  9. void SetFlipY(bool flipY);
  10. void SetColor(const Color& color);
  11. void SetAlpha(float alpha);
  12. void SetUseHotSpot(bool useHotSpot);
  13. void SetHotSpot(const Vector2& hotspot);
  14. void SetCustomMaterial(Material* customMaterial);
  15. Sprite2D* GetSprite() const;
  16. BlendMode GetBlendMode() const;
  17. bool GetFlipX() const;
  18. bool GetFlipY() const;
  19. const Color& GetColor() const;
  20. float GetAlpha() const;
  21. bool GetUseHotSpot() const;
  22. const Vector2& GetHotSpot() const;
  23. Material* GetCustomMaterial() const;
  24. tolua_property__get_set Sprite2D* sprite;
  25. tolua_property__get_set BlendMode blendMode;
  26. tolua_property__get_set bool flipX;
  27. tolua_property__get_set bool flipY;
  28. tolua_property__get_set Color& color;
  29. tolua_property__get_set float alpha;
  30. tolua_property__get_set bool useHotSpot;
  31. tolua_property__get_set Vector2 hotSpot;
  32. tolua_property__get_set Material* customMaterial;
  33. };