|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
A BitMap object, 64 bytes: a struct BitMap (+0 .. +39) and the Blitz fields behind it. More...
#include <blitzobj.h>
Data Fields | |
| UWORD | bpr |
| UWORD | rows |
| union { | |
| struct { | |
| UBYTE flags | |
| UBYTE depth | |
| } | |
| UWORD flagsdepth | |
| }; | |
| UWORD | oldfd |
| UBYTE * | planes [8] |
| UWORD | cursx |
| UWORD | cursy |
| UBYTE | pad44 [4] |
| WORD | xorigin |
| WORD | yorigin |
| union { | |
| struct { | |
| UBYTE ilflag | |
| UBYTE pad53 | |
| } | |
| UWORD ilword | |
| }; | |
| UWORD | planedist |
| UWORD | width |
| UWORD | height |
| UWORD | colours |
| WORD | isreal |
A BitMap object, 64 bytes: a struct BitMap (+0 .. +39) and the Blitz fields behind it.
Owner: bitmaplib (BitMap, CludgeBitMap, interleaved bitmaps); 2dlib sets the origin +48/+50 (BitMapOrigin) and, for BitMapWindow, bit 0 of the word at +52 and the window's byte width at +54; fontlib keeps the text cursor at +40/+42. Read by shapeslib, 2dlib, polylib, scrolllib, blitlib, bblitlib, qblitlib, stencillib, animlib, blitzcoplib, screenslib, fontlib, blitzoslib and the RWE libraries bb_blitlib, rigfxlib. Several readers take Flags/Depth (+4) as one word (flagsdepth) and the interleave flag as a word (ilword). displaylib walks the object with a byte pointer; ilbmifflib, iffmakelib, windowslib and several RWE libraries read only the struct BitMap part, as a struct BitMap.
| union { ... } bb_bitmap |
| union { ... } bb_bitmap |
| UWORD bb_bitmap::bpr |
+0 BytesPerRow
| UWORD bb_bitmap::colours |
+60
| UWORD bb_bitmap::cursx |
+40 text cursor x in pixels (fontlib)
| UWORD bb_bitmap::cursy |
+42 text cursor y in pixels (fontlib)
| UBYTE bb_bitmap::depth |
+5 Depth
| UBYTE bb_bitmap::flags |
+4 Flags
| UWORD bb_bitmap::flagsdepth |
+4 Flags << 8 | Depth, as one word
| UWORD bb_bitmap::height |
+58 clip height
| UBYTE bb_bitmap::ilflag |
+52 bit 7: interleaved
| UWORD bb_bitmap::ilword |
+52 as one word: negative = interleaved
| WORD bb_bitmap::isreal |
+62 0 = not set up, 1 = borrowed planes, -1 = own planes
| UWORD bb_bitmap::oldfd |
+6 Flags/Depth before interleaving
| UBYTE bb_bitmap::pad44[4] |
+44
| UBYTE bb_bitmap::pad53 |
+53
| UWORD bb_bitmap::planedist |
+54 bytes from one plane's row to the next plane's (interleaved)
| UBYTE* bb_bitmap::planes[8] |
+8 Planes
| UWORD bb_bitmap::rows |
+2 Rows
| UWORD bb_bitmap::width |
+56 clip width
| WORD bb_bitmap::xorigin |
+48 BitMapOrigin x (2dlib)
| WORD bb_bitmap::yorigin |
+50 BitMapOrigin y (2dlib)