UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sprite.h
Go to the documentation of this file.
1 #ifndef UGDK_GRAPHIC_SPRITE_H_
2 #define UGDK_GRAPHIC_SPRITE_H_
3 
4 #include <ugdk/graphic.h>
5 #include <ugdk/action.h>
6 
8 #include <ugdk/graphic.h>
11 
12 namespace ugdk {
13 namespace graphic {
14 
16  public:
17  PrimitiveControllerSprite(const TextureAtlas* spritesheet);
19 
21  void ChangeToAtlasFrame(const std::string& frame_name);
22  void ChangeToAtlasFrame(std::size_t frame_number);
23 
24  private:
25  void ChangeToBoundPiece(TextureAtlas::BoundPiece& piece);
26 
27  const TextureAtlas* spritesheet_;
28 };
29 
30 
31 } // namespace graphic
32 } // namespace ugdk
33 
34 #endif // UGDK_GRAPHIC_SPRITE_H_
Definition: textureatlas.h:31
Definition: animation.h:11
void ChangeToAtlasFrame(const std::string &frame_name)
PrimitiveControllerSprite(const TextureAtlas *spritesheet)
Definition: primitivecontroller.h:12
Definition: textureatlas.h:20
void ChangeToAnimationFrame(const action::SpriteAnimationFrame &frame)
Definition: spriteanimationframe.h:17