SpriteSheet2D.pkg 337 B

123456789
  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), const IntVector2& originSize = IntVector2::ZERO);
  8. };