|
coastline 0.0.4
|
A picture of the menus. More...
#include <sprite.h>
Public Attributes | |
| u8 * | pixels |
| u32 | romOffset |
| u32 | romEnd |
| u8 | bitsPerTexel |
| u32 | width |
| u32 | height |
| u32 | stripHeight |
| s32 | originX |
| s32 | originY |
| s32 | drawWidth |
| s32 | drawHeight |
| u8 | style |
A picture of the menus.
The texels are stored in strips of rows, from the bottom row up, and each strip is loaded and drawn on its own.
| u8* Sprite::pixels |
The texels, once loaded.
| u32 Sprite::romOffset |
Where the compressed picture starts on the cartridge.
| u32 Sprite::romEnd |
The start of the next asset on the cartridge.
| u8 Sprite::bitsPerTexel |
The bits of a texel, 4 for intensity, 8 for intensity and alpha, and 16 for colour.
| u32 Sprite::width |
The width in texels.
| u32 Sprite::height |
The height in texels.
| u32 Sprite::stripHeight |
The rows of a strip.
| s32 Sprite::originX |
The x the picture is drawn from on the screen.
| s32 Sprite::originY |
The y the picture is drawn from on the screen.
| s32 Sprite::drawWidth |
The width the picture is drawn at on the screen, negative to flip it.
| s32 Sprite::drawHeight |
The height the picture is drawn at on the screen.
| u8 Sprite::style |
The style of a paint tool on the pictures of the tools, or SPRITE_STYLE_TINTED for a sprite drawn in a colour.