BB2 C port
API reference: Blitz libraries in C and the shared code
Loading...
Searching...
No Matches
bb_sprite Struct Reference

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

Detailed Description

A Sprite object, 16 bytes.

Owner: spriteslib. Read by displaylib (DisplaySprite), mouselib and collslib.

Field Documentation

◆ [union]

union { ... } bb_sprite

◆ attach

UBYTE bb_sprite::attach

+8 bit 7 = 16 colours

◆ count

UWORD bb_sprite::count

+6 number of hardware sprites used

◆ data

UBYTE* bb_sprite::data

+0 the images (CHIP), 0 = none

◆ flags

UWORD bb_sprite::flags

+8 bit 15 = 16 colours (attached pairs)

◆ handlex

UWORD bb_sprite::handlex

+12 handle x

◆ handley

UWORD bb_sprite::handley

+14 handle y

◆ height

UWORD bb_sprite::height

+4 height + 1 (for the final zeros)

◆ imgsize

UWORD bb_sprite::imgsize

+10 bytes per image

◆ width

UBYTE bb_sprite::width

+9 pixel width


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