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

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

Detailed Description

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.

Field Documentation

◆ [union]

union { ... } bb_bitmap

◆ [union]

union { ... } bb_bitmap

◆ bpr

UWORD bb_bitmap::bpr

+0 BytesPerRow

◆ colours

UWORD bb_bitmap::colours

+60

◆ cursx

UWORD bb_bitmap::cursx

+40 text cursor x in pixels (fontlib)

◆ cursy

UWORD bb_bitmap::cursy

+42 text cursor y in pixels (fontlib)

◆ depth

UBYTE bb_bitmap::depth

+5 Depth

◆ flags

UBYTE bb_bitmap::flags

+4 Flags

◆ flagsdepth

UWORD bb_bitmap::flagsdepth

+4 Flags << 8 | Depth, as one word

◆ height

UWORD bb_bitmap::height

+58 clip height

◆ ilflag

UBYTE bb_bitmap::ilflag

+52 bit 7: interleaved

◆ ilword

UWORD bb_bitmap::ilword

+52 as one word: negative = interleaved

◆ isreal

WORD bb_bitmap::isreal

+62 0 = not set up, 1 = borrowed planes, -1 = own planes

◆ oldfd

UWORD bb_bitmap::oldfd

+6 Flags/Depth before interleaving

◆ pad44

UBYTE bb_bitmap::pad44[4]

+44

◆ pad53

UBYTE bb_bitmap::pad53

+53

◆ planedist

UWORD bb_bitmap::planedist

+54 bytes from one plane's row to the next plane's (interleaved)

◆ planes

UBYTE* bb_bitmap::planes[8]

+8 Planes

◆ rows

UWORD bb_bitmap::rows

+2 Rows

◆ width

UWORD bb_bitmap::width

+56 clip width

◆ xorigin

WORD bb_bitmap::xorigin

+48 BitMapOrigin x (2dlib)

◆ yorigin

WORD bb_bitmap::yorigin

+50 BitMapOrigin y (2dlib)


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