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

A Shape object, 32 bytes (shapeslib's; also the block SaveShape(s) writes and the header of a shape for CludgeShapes). More...

#include <blitzobj.h>

Data Fields

UWORD width
UWORD height
UWORD depth
UWORD ebwidth
UWORD bltsize
WORD handlex
WORD handley
UBYTE * data
UBYTE * cookie
UWORD planesize
UWORD xplanesize
UWORD size
UWORD xsize
UWORD cludge

Detailed Description

A Shape object, 32 bytes (shapeslib's; also the block SaveShape(s) writes and the header of a shape for CludgeShapes).

Owner: shapeslib. Read or written by shapetrixlib, bitmaplib, blitlib, bblitlib, 2dlib, qblitlib, stencillib, collslib, spriteslib, iffmakelib, gtlib, gadgetslib, menuslib, windowslib and the RWE libraries rishapeslib, rimapeditorlib, ritooltypeslib, rimapshapeslib, riwbspritelib, bb_blitlib.

Field Documentation

◆ bltsize

UWORD bb_shape::bltsize

+8 height << 6 | words + 1

◆ cludge

UWORD bb_shape::cludge

+30 BB_CLUDGE: the data is not ours

◆ cookie

UBYTE* bb_shape::cookie

+18 OR of all planes, CHIP, or 0

◆ data

UBYTE* bb_shape::data

+14 plane after plane, CHIP

◆ depth

UWORD bb_shape::depth

+4 number of planes

◆ ebwidth

UWORD bb_shape::ebwidth

+6 even byte width (bytes per row)

◆ handlex

WORD bb_shape::handlex

+10 handle x

◆ handley

WORD bb_shape::handley

+12 handle y

◆ height

UWORD bb_shape::height

+2 pixel height

◆ planesize

UWORD bb_shape::planesize

+22 bytes per plane

◆ size

UWORD bb_shape::size

+26 the whole shape

◆ width

UWORD bb_shape::width

+0 pixel width, 0 = no shape

◆ xplanesize

UWORD bb_shape::xplanesize

+24 per plane + one word per row

◆ xsize

UWORD bb_shape::xsize

+28 whole + one word per row


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