|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
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 |
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.
| UWORD bb_shape::bltsize |
+8 height << 6 | words + 1
| UWORD bb_shape::cludge |
+30 BB_CLUDGE: the data is not ours
| UBYTE* bb_shape::cookie |
+18 OR of all planes, CHIP, or 0
| UBYTE* bb_shape::data |
+14 plane after plane, CHIP
| UWORD bb_shape::depth |
+4 number of planes
| UWORD bb_shape::ebwidth |
+6 even byte width (bytes per row)
| WORD bb_shape::handlex |
+10 handle x
| WORD bb_shape::handley |
+12 handle y
| UWORD bb_shape::height |
+2 pixel height
| UWORD bb_shape::planesize |
+22 bytes per plane
| UWORD bb_shape::size |
+26 the whole shape
| UWORD bb_shape::width |
+0 pixel width, 0 = no shape
| UWORD bb_shape::xplanesize |
+24 per plane + one word per row
| UWORD bb_shape::xsize |
+28 whole + one word per row