SpriteSheet2D.pkg 403 B

12345678910
  1. $#include "SpriteSheet2D.h"
  2. class SpriteSheet2D : public Resource
  3. {
  4. public:
  5. Texture2D* GetTexture() const;
  6. Sprite2D* GetSprite(const String name) const;
  7. void DefineSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot = Vector2(0.5f, 0.5f));
  8. void UpdateSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot = Vector2(0.5f, 0.5f));
  9. };