coastline 0.0.4
Loading...
Searching...
No Matches
Sprite Struct Reference

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

Detailed Description

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.

Member Data Documentation

◆ pixels

u8* Sprite::pixels

The texels, once loaded.

◆ romOffset

u32 Sprite::romOffset

Where the compressed picture starts on the cartridge.

◆ romEnd

u32 Sprite::romEnd

The start of the next asset on the cartridge.

◆ bitsPerTexel

u8 Sprite::bitsPerTexel

The bits of a texel, 4 for intensity, 8 for intensity and alpha, and 16 for colour.

◆ width

u32 Sprite::width

The width in texels.

◆ height

u32 Sprite::height

The height in texels.

◆ stripHeight

u32 Sprite::stripHeight

The rows of a strip.

◆ originX

s32 Sprite::originX

The x the picture is drawn from on the screen.

◆ originY

s32 Sprite::originY

The y the picture is drawn from on the screen.

◆ drawWidth

s32 Sprite::drawWidth

The width the picture is drawn at on the screen, negative to flip it.

◆ drawHeight

s32 Sprite::drawHeight

The height the picture is drawn at on the screen.

◆ style

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.


The documentation for this struct was generated from the following file: