|
static int | _clippedBottom |
|
◆ load() [1/2]
Load a sprite resource from a stream
◆ draw() [1/4]
void MM::Shared::Xeen::SpriteResource::draw |
( |
XSurface & |
dest, |
|
|
int |
frame, |
|
|
const Common::Point & |
destPos, |
|
|
const Common::Rect & |
bounds, |
|
|
uint |
flags = 0 , |
|
|
int |
scale = 0 |
|
) |
| const |
|
protected |
Draw the sprite onto the given surface
◆ copy()
void MM::Shared::Xeen::SpriteResource::copy |
( |
const SpriteResource & |
src | ) |
|
|
protected |
Deep copy assuming that the current instance is clean
◆ operator=()
Copy operator for duplicating a sprite resource
◆ load() [2/2]
void MM::Shared::Xeen::SpriteResource::load |
( |
const Common::Path & |
filename | ) |
|
Load a sprite resource from a given file
◆ clear()
void MM::Shared::Xeen::SpriteResource::clear |
( |
| ) |
|
Clears the sprite resource
◆ draw() [2/4]
void MM::Shared::Xeen::SpriteResource::draw |
( |
XSurface & |
dest, |
|
|
int |
frame, |
|
|
const Common::Point & |
destPos, |
|
|
uint |
flags = 0 , |
|
|
int |
scale = 0 |
|
) |
| const |
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() [3/4]
void MM::Shared::Xeen::SpriteResource::draw |
( |
XSurface & |
dest, |
|
|
int |
frame |
|
) |
| const |
Draw the sprite onto the given surface
- Parameters
-
dest | Destination surface |
frame | Frame number |
◆ draw() [4/4]
Draw the sprite onto a given surface
◆ getFrameSize()
Common::Point MM::Shared::Xeen::SpriteResource::getFrameSize |
( |
int |
frame | ) |
const |
Gets the size of a sprite
◆ size()
size_t MM::Shared::Xeen::SpriteResource::size |
( |
| ) |
const |
|
inline |
Returns the number of frames the sprite resource has
◆ empty()
bool MM::Shared::Xeen::SpriteResource::empty |
( |
| ) |
const |
|
inline |
Returns true if the sprite resource is empty (ie. nothing is loaded)
◆ setClippedBottom()
static void MM::Shared::Xeen::SpriteResource::setClippedBottom |
( |
int |
y | ) |
|
|
inlinestatic |
Set the bottom Y position where sprites are clipped if SPRFLAG_BOTTOM_CLIPPED is applied
The documentation for this class was generated from the following file: