◆ Sprite() [1/3]
Ultima::Shared::Gfx::Sprite::Sprite |
( |
| ) |
|
◆ Sprite() [2/3]
Ultima::Shared::Gfx::Sprite::Sprite |
( |
const Sprite & |
src | ) |
|
Constructor, copying from another sprite
◆ Sprite() [3/3]
Ultima::Shared::Gfx::Sprite::Sprite |
( |
const byte * |
src, |
|
|
uint |
bpp, |
|
|
uint16 |
w = 16 , |
|
|
uint16 |
h = 16 |
|
) |
| |
Constructor, loading a sprite from passed data
- Parameters
-
src | Source data |
bpp | The bits per pixel for tiles in the file |
w | Width of tiles |
h | Height of files |
◆ operator=()
Sprite& Ultima::Shared::Gfx::Sprite::operator= |
( |
const Sprite & |
src | ) |
|
◆ draw()
Draw a tile onto a passed surface
◆ w()
uint16 Ultima::Shared::Gfx::Sprite::w |
( |
| ) |
const |
|
inline |
Return the width of the sprite
◆ h()
uint16 Ultima::Shared::Gfx::Sprite::h |
( |
| ) |
const |
|
inline |
Return the height of the sprite
◆ getPixels()
byte* Ultima::Shared::Gfx::Sprite::getPixels |
( |
| ) |
|
|
inline |
Get a reference to the sprite surface
◆ getBasePtr() [1/2]
byte* Ultima::Shared::Gfx::Sprite::getBasePtr |
( |
int16 |
x, |
|
|
int16 |
y |
|
) |
| |
|
inline |
Get a reference to a specified position within the sprite
◆ getBasePtr() [2/2]
const byte* Ultima::Shared::Gfx::Sprite::getBasePtr |
( |
int16 |
x, |
|
|
int16 |
y |
|
) |
| const |
|
inline |
Get a reference to a specified position within the sprite
The documentation for this class was generated from the following file: