UGDK
0.5.0
Main Page
Namespaces
Classes
Files
File List
File Members
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
7
#include <
ugdk/action/animationplayer.h
>
8
#include <
ugdk/graphic.h
>
9
#include <
ugdk/graphic/primitivecontroller.h
>
10
#include <
ugdk/graphic/textureatlas.h
>
11
12
namespace
ugdk
{
13
namespace
graphic {
14
15
class
PrimitiveControllerSprite
:
public
PrimitiveController
{
16
public
:
17
PrimitiveControllerSprite
(
const
TextureAtlas
* spritesheet);
18
~PrimitiveControllerSprite
();
19
20
void
ChangeToAnimationFrame
(
const
action::SpriteAnimationFrame
& frame);
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_
ugdk::graphic::TextureAtlas::BoundPiece
Definition:
textureatlas.h:31
textureatlas.h
animationplayer.h
ugdk
Definition:
animation.h:11
primitivecontroller.h
ugdk::graphic::PrimitiveControllerSprite::ChangeToAtlasFrame
void ChangeToAtlasFrame(const std::string &frame_name)
ugdk::graphic::PrimitiveControllerSprite::PrimitiveControllerSprite
PrimitiveControllerSprite(const TextureAtlas *spritesheet)
action.h
graphic.h
ugdk::graphic::PrimitiveController
Definition:
primitivecontroller.h:12
ugdk::graphic::TextureAtlas
Definition:
textureatlas.h:20
ugdk::graphic::PrimitiveControllerSprite
Definition:
sprite.h:15
ugdk::graphic::PrimitiveControllerSprite::ChangeToAnimationFrame
void ChangeToAnimationFrame(const action::SpriteAnimationFrame &frame)
ugdk::graphic::PrimitiveControllerSprite::~PrimitiveControllerSprite
~PrimitiveControllerSprite()
ugdk::action::SpriteAnimationFrame
Definition:
spriteanimationframe.h:17
modules
ugdk-2d
include
ugdk
graphic
sprite.h
Generated on Sun Dec 6 2015 00:40:24 for UGDK by
1.8.8