1 #ifndef ATHENA_NO_SAKURA
17 #ifndef SSPRITEFILE_HPP
18 #define SSPRITEFILE_HPP
22 #include <unordered_map>
32 #include "Athena/Global.hpp"
103 #ifndef ATHENA_USE_QT
111 #ifndef ATHENA_USE_QT
128 #ifndef ATHENA_USE_QT
138 #ifndef ATHENA_USE_QT
148 atUint32
width()
const;
161 void setOrigin(
const float x,
const float y);
167 #ifndef ATHENA_USE_QT
177 #ifndef ATHENA_USE_QT
215 #ifndef ATHENA_USE_QT
216 std::vector<STexture*> textures()
const;
218 QList<STexture*> textures()
const;
220 atUint32 textureCount()
const;
226 #ifndef ATHENA_USE_QT
232 void addSprite(
Sprite* sprite);
234 #ifndef ATHENA_USE_QT
235 void removeSprite(
const std::string& name);
237 void removeSprite(
const QString& name);
239 void removeSprite(
Sprite* sprite);
241 #ifndef ATHENA_USE_QT
242 void setSprites(std::unordered_map<std::string, Sprite*> sprites);
244 void setSprites(QMap<QString, Sprite*> sprites);
246 #ifndef ATHENA_USE_QT
247 Sprite* sprite(
const std::string& name);
248 std::unordered_map<std::string, Sprite*> sprites()
const;
250 Sprite* sprite(
const QString& name);
251 QMap<QString, Sprite*> sprites()
const;
254 atUint32 spriteCount()
const;
258 void originChanged(QPoint);
259 void sizeChanged(QSize);
262 #ifndef ATHENA_USE_QT
263 std::vector<STexture*> m_textures;
266 std::unordered_map<std::string, Sprite*> m_sprites;
268 QList<STexture*> m_textures;
271 QMap<QString, Sprite*> m_sprites;
279 Q_DECLARE_METATYPE(
Athena::Sakura::STexture*)
281 #endif // SSPRITE_HPP
283 #endif // ATHENA_NO_SAKURA
void setSize(atUint32 width, atUint32 height)
setSize
float originY() const
originY
bool addTexture(STexture *texture)
addTexture
static const atUint32 Revision
Revision.
void setTextures(std::vector< STexture * > textures)
setTextures
static const atUint32 Major
Major.
Vector2Df origin() const
origin
float originX() const
originX
void removeTexture(int id)
removeTexture
static const atUint32 Magic
Magic.
Vector2Di size() const
size
static const atUint32 Build
Patch.
static const atUint32 Minor
Minor.
static const atUint32 Version
Version.
atUint32 width() const
width
void setOrigin(const float x, const float y)
setOrigin
STexture * texture(atUint32 id)
texture
atUint32 height() const
height