|
| SpriteResource (const Common::Path &filename) |
|
| SpriteResource (const Common::Path &filename, int ccMode) |
|
void | load (const Common::Path &filename) |
|
void | load (const Common::Path &filename, int ccMode) |
|
void | draw (Shared::Xeen::XSurface &dest, int frame, const Common::Point &destPos, uint flags=0, int scale=0) |
|
void | draw (Shared::Xeen::XSurface &dest, int frame) |
|
void | draw (Graphics::ManagedSurface *dest, int frame, const Common::Point &destPos) |
|
void | draw (Window &dest, int frame, const Common::Point &destPos, uint flags=0, int scale=0) |
|
void | draw (int windowIndex, int frame) |
|
void | draw (int windowIndex, int frame, const Common::Point &destPos, uint flags=0, int scale=0) |
|
| SpriteResource (const Common::Path &filename) |
|
| SpriteResource (const SpriteResource &src) |
|
SpriteResource & | operator= (const SpriteResource &src) |
|
void | load (const Common::Path &filename) |
|
void | clear () |
|
void | draw (XSurface &dest, int frame, const Common::Point &destPos, uint flags=0, int scale=0) const |
|
void | draw (XSurface &dest, int frame) const |
|
void | draw (Graphics::ManagedSurface *dest, int frame, const Common::Point &destPos) const |
|
Common::Point | getFrameSize (int frame) const |
|
size_t | size () const |
|
bool | empty () const |
|
◆ load() [1/2]
void MM::Xeen::SpriteResource::load |
( |
const Common::Path & |
filename | ) |
|
|
inline |
Load a sprite resource from a given file
◆ load() [2/2]
void MM::Xeen::SpriteResource::load |
( |
const Common::Path & |
filename, |
|
|
int |
ccMode |
|
) |
| |
Load a sprite resource from a given file and archive
◆ draw() [1/6]
Draw a sprite onto a surface
- Parameters
-
dest | Destination surface |
frame | Frame number |
destPos | Destination position |
flags | Flags |
scale | Scale: 0=No scale, SCALE_ENLARGE=Enlarge it 1..15 -> reduces the sprite: the higher, the smaller it'll be |
◆ draw() [2/6]
Draw the sprite onto the given surface
- Parameters
-
dest | Destination surface |
frame | Frame number |
◆ draw() [3/6]
Draw the sprite onto a given surface
◆ draw() [4/6]
void MM::Xeen::SpriteResource::draw |
( |
Window & |
dest, |
|
|
int |
frame, |
|
|
const Common::Point & |
destPos, |
|
|
uint |
flags = 0 , |
|
|
int |
scale = 0 |
|
) |
| |
Draw a sprite onto a specific window
- Parameters
-
dest | Destination window |
frame | Frame number |
destPos | Destination position |
flags | Flags |
scale | Scale: 0=No scale, SCALE_ENLARGE=Enlarge it 1..15 -> reduces the sprite: the higher, the smaller it'll be |
◆ draw() [5/6]
void MM::Xeen::SpriteResource::draw |
( |
int |
windowIndex, |
|
|
int |
frame |
|
) |
| |
Draw the sprite onto the given window
- Parameters
-
windowIndex | Destination window number |
frame | Frame number |
◆ draw() [6/6]
void MM::Xeen::SpriteResource::draw |
( |
int |
windowIndex, |
|
|
int |
frame, |
|
|
const Common::Point & |
destPos, |
|
|
uint |
flags = 0 , |
|
|
int |
scale = 0 |
|
) |
| |
Draw a sprite onto a given window
- Parameters
-
windowIndex | Destination window number |
frame | Frame number |
destPos | Destination position |
flags | Flags |
scale | Scale: 0=No scale, SCALE_ENLARGE=Enlarge it 1..15 -> reduces the sprite: the higher, the smaller it'll be |
The documentation for this class was generated from the following file: