| 123456789101112131415161718192021222324252627282930313233343536 |
- $#include "Urho2D/StaticSprite2D.h"
- class StaticSprite2D : public Drawable2D
- {
- public:
- void SetSprite(Sprite2D* sprite);
- void SetBlendMode(BlendMode mode);
- void SetFlip(bool flipX, bool flipY);
- void SetFlipX(bool flipX);
- void SetFlipY(bool flipY);
- void SetColor(const Color& color);
- void SetAlpha(float alpha);
- void SetUseHotSpot(bool useHotSpot);
- void SetHotSpot(const Vector2& hotspot);
- void SetCustomMaterial(Material* customMaterial);
- Sprite2D* GetSprite() const;
- BlendMode GetBlendMode() const;
- bool GetFlipX() const;
- bool GetFlipY() const;
- const Color& GetColor() const;
- float GetAlpha() const;
- bool GetUseHotSpot() const;
- const Vector2& GetHotSpot() const;
- Material* GetCustomMaterial() const;
-
- tolua_property__get_set Sprite2D* sprite;
- tolua_property__get_set BlendMode blendMode;
- tolua_property__get_set bool flipX;
- tolua_property__get_set bool flipY;
- tolua_property__get_set Color& color;
- tolua_property__get_set float alpha;
- tolua_property__get_set bool useHotSpot;
- tolua_property__get_set Vector2 hotSpot;
- tolua_property__get_set Material* customMaterial;
- };
|