|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
A Sprite object, 16 bytes. More...
#include <blitzobj.h>
Data Fields | |
| UBYTE * | data |
| UWORD | height |
| UWORD | count |
| union { | |
| UWORD flags | |
| struct { | |
| UBYTE attach | |
| UBYTE width | |
| } | |
| }; | |
| UWORD | imgsize |
| UWORD | handlex |
| UWORD | handley |
A Sprite object, 16 bytes.
Owner: spriteslib. Read by displaylib (DisplaySprite), mouselib and collslib.
| union { ... } bb_sprite |
| UBYTE bb_sprite::attach |
+8 bit 7 = 16 colours
| UWORD bb_sprite::count |
+6 number of hardware sprites used
| UBYTE* bb_sprite::data |
+0 the images (CHIP), 0 = none
| UWORD bb_sprite::flags |
+8 bit 15 = 16 colours (attached pairs)
| UWORD bb_sprite::handlex |
+12 handle x
| UWORD bb_sprite::handley |
+14 handle y
| UWORD bb_sprite::height |
+4 height + 1 (for the final zeros)
| UWORD bb_sprite::imgsize |
+10 bytes per image
| UBYTE bb_sprite::width |
+9 pixel width