|
| void | dobuffer (void) |
| void | bblitlib_doblit (void) |
| void | bblitlib_doblitex (void) |
| void | dounbuffer (void) |
| void | dobblitmode (void) |
| void | doshowstencil (void) |
| void | doflushbuff (void) |
| void | bblitlib_codeinit (void) |
| void | freebuffer (void) |
| void | bblitchk (void) |
| void | unbufferchk (void) |
| void | unbufferchk2 (void) |
| static void | dobblitmode_c (UWORD m) |
| | BBlitMode BLTCON0: the minterm/channel bits of BBlit's BLTCON0 (ORed with the shift; blitlib's CookieMode ... give the values).
|
| | BLITZ_ALIAS (dobblitmode, dobblitmode_c) |
| static ULONG | codeinit_c (ULONG incoming) |
| | init: BBlitMode $FCA (cookie cut).
|
| static void | freebuf (struct buffer *b) |
| static void | freebuffer_c (void) |
| | Free Buffer (the object's _free nullsub): free the memory of the buffer in a3.
|
| static void | dobuffer_c (ULONG len) |
| | Buffer Buffer#,Memorylen: (re)allocate the buffer.
|
| | BLITZ_ALIAS (dobuffer, dobuffer_c) |
| static void | doflushbuff_c (void) |
| | FlushBuffer Buffer#: empty the buffer without restoring the background (MOVE.l 8(a3),(a3)+:CLR.l (a3)).
|
| | BLITZ_ALIAS (doflushbuff, doflushbuff_c) |
| BL_ALWAYS_INLINE void | bblit (struct buffer *b, const struct bb_shape *shape, const struct bb_bitmap *bm, UBYTE *cb, WORD x, WORD y, struct blitstate *st) |
| BL_ALWAYS_INLINE void | bblitex (struct buffer *b, const struct bb_shape *shape, const struct bb_bitmap *bm, UBYTE *cb, WORD x, WORD y, UWORD bits) |
| BL_ALWAYS_INLINE void | unbuffer (struct buffer *b, UBYTE *cb) |
| BL_ALWAYS_INLINE void | showstencil (struct buffer *b, UBYTE *cb, const struct stencil *stencil) |
| static BLITZ_ENTRYPOINT void | b_doblit_c (WORD x, WORD y, struct buffer *b, UBYTE *cb, const struct bb_bitmap *bm) |
| | BBlit Buffer#,Shape#,X,Y: blit the shape into the used bitmap, the background saved in the buffer (Blitz mode).
|
| | BLITZ_EP_MARK (b_doblit_c) |
| static void | a_doblit_c (WORD x, WORD y, struct buffer *b, UBYTE *cb, const struct bb_bitmap *bm, struct Library *gfx) |
| | BBlit Buffer#,Shape#,X,Y (Amiga mode).
|
| static BLITZ_ENTRYPOINT void | b_doblitex_c (WORD x, WORD y, struct buffer *b, UBYTE *cb, const struct bb_bitmap *bm, UWORD bits) |
| | BBlit Buffer#,Shape#,X,Y,Excessonoff (Blitz mode).
|
| | BLITZ_EP_MARK (b_doblitex_c) |
| static void | a_doblitex_c (WORD x, WORD y, struct buffer *b, UBYTE *cb, const struct bb_bitmap *bm, UWORD bits, struct Library *gfx) |
| | BBlit Buffer#,Shape#,X,Y,Excessonoff (Amiga mode).
|
| static BLITZ_ENTRYPOINT void | b_dounbuffer_c (UBYTE *cb) |
| | UnBuffer Buffer#: restore the background of all BBlits of the buffer (Blitz mode).
|
| | BLITZ_EP_MARK (b_dounbuffer_c) |
| void | a_dounbuffer_c (UBYTE *cb, struct Library *gfx) |
| | UnBuffer Buffer# (Amiga mode).
|
| static BLITZ_ENTRYPOINT void | b_showstencil_c (const struct stencil *st, UBYTE *cb) |
| | ShowStencil Buffer#,Stencil#: restore the background of the buffer's BBlits through a stencil (Blitz mode).
|
| | BLITZ_EP_MARK (b_showstencil_c) |
| void | a_showstencil_c (const struct stencil *st, UBYTE *cb, struct Library *gfx) |
| | ShowStencil Buffer#,Stencil# (Amiga mode; the wait is a single BTST loop).
|
| static int | maxchk (const struct bb_shape *shape, const struct bb_bitmap *bm) |
| static int | poschk (const struct bb_shape *shape, const struct bb_bitmap *bm, WORD x, WORD y) |
| static void | bblitchk_c (WORD x, WORD y, const struct buffer *b, const struct bb_bitmap *bm) |
| static void | unbufferchk_c (void) |
| static void | unbufferchk2_c (const struct stencil *st) |
| void a_doblit_c |
( |
WORD | x, |
|
|
WORD | y, |
|
|
struct buffer * | b, |
|
|
UBYTE * | cb, |
|
|
const struct bb_bitmap * | bm, |
|
|
struct Library * | gfx ) |
|
static |
BBlit Buffer#,Shape#,X,Y (Amiga mode).
Amiga mode: OwnBlitter, the blit, wait for the blitter, DisownBlitter. First the bitmap area under the shape is saved (A -> D copy, every bitmap plane) into a record at the buffer's write position, then the shape is blitted like blitlib's Blit (A = cookie, B = data, C = D = bitmap, BLTCON0 = shift | BBlitMode). Not a bug: the last word mask of the blit is cleared, the first stays $FFFF from the save blit. BUG(orig): only the error check tests for an overflow of the buffer (#73). Fixed (#74): a bitmap or shape of depth 0 loops 65536 times (DBF), refused at its creation in the error check area. Errors (debugger, bblitchk): "Uninitialized Buffer", "Shape does not
have a cookie cut", "Unitialized BitMap", "Uninialized Shape", "Shape
has too many BitPlanes", "Coords outside of BitMap", "Buffer Overflow". The shape comes in a3 (!libs {shapeslib,$1381}, from Shape# in d1).
- Parameters
-
| x | d2.w: x (the shape's handle is subtracted) |
| y | d3.w: y |
| b | a0: the buffer (!libs {bblitlib,$1080}, from Buffer# in d0) |
| cb | a1: the custom chip base $DFF000 (chipbaselib) |
| bm | a2: the used bitmap (!libs {bitmaplib,$1202}) |
| gfx | a6: graphics.library (!libs {graphicslib,$5600}) |
| void a_doblitex_c |
( |
WORD | x, |
|
|
WORD | y, |
|
|
struct buffer * | b, |
|
|
UBYTE * | cb, |
|
|
const struct bb_bitmap * | bm, |
|
|
UWORD | bits, |
|
|
struct Library * | gfx ) |
|
static |
BBlit Buffer#,Shape#,X,Y,Excessonoff (Amiga mode).
Amiga mode: OwnBlitter, the blit, wait for the blitter, DisownBlitter. BBlit, then the bitmap planes beyond the shape's depth get A = cookie, minterm $0A (cleared) or $FA (set), one bit of Excessonoff per plane. Errors (debugger, bblitchk): as BBlit. The shape comes in a3 (!libs {shapeslib,$1381}, from Shape# in d1).
- Parameters
-
| x | d2.w: x (the shape's handle is subtracted) |
| y | d3.w: y |
| b | a0: the buffer (!libs {bblitlib,$1080}, from Buffer# in d0) |
| cb | a1: the custom chip base $DFF000 (chipbaselib) |
| bm | a2: the used bitmap (!libs {bitmaplib,$1202}) |
| bits | d4.w: Excessonoff, one bit per excess plane (set = $FA) |
| gfx | a6: graphics.library (!libs {graphicslib,$5600}) |
| void a_dounbuffer_c |
( |
UBYTE * | cb, |
|
|
struct Library * | gfx ) |
UnBuffer Buffer# (Amiga mode).
Amiga mode: OwnBlitter, the blit, wait for the blitter, DisownBlitter. The records are copied back (newest first, A -> D), then the buffer is empty. Errors (debugger, unbufferchk): "Uninitialized Buffer". The buffer comes in a3 (!libs {bblitlib,$1380}, from Buffer# in d0).
- Parameters
-
| cb | a2: the custom chip base $DFF000 (chipbaselib) |
| gfx | a6: graphics.library (!libs {graphicslib,$5600}) |
| void a_showstencil_c |
( |
const struct stencil * | st, |
|
|
UBYTE * | cb, |
|
|
struct Library * | gfx ) |
ShowStencil Buffer#,Stencil# (Amiga mode; the wait is a single BTST loop).
Amiga mode: OwnBlitter, the blit, wait for the blitter, DisownBlitter. As UnBuffer, through the stencil as B (minterm $E2); the buffer stays. Errors (debugger, unbufferchk2): "Uninitialized Stencil" (the buffer is not checked). The buffer comes in a3 (!libs {bblitlib,$1380}, from Buffer# in d0).
- Parameters
-
| st | a1: the stencil (!libs {stencillib,$1181}, from Stencil# in d1) |
| cb | a2: the custom chip base $DFF000 (chipbaselib) |
| gfx | a6: graphics.library (!libs {graphicslib,$5600}) |
BBlit Buffer#,Shape#,X,Y: blit the shape into the used bitmap, the background saved in the buffer (Blitz mode).
First the bitmap area under the shape is saved (A -> D copy, every bitmap plane) into a record at the buffer's write position, then the shape is blitted like blitlib's Blit (A = cookie, B = data, C = D = bitmap, BLTCON0 = shift | BBlitMode). Not a bug: the last word mask of the blit is cleared, the first stays $FFFF from the save blit. BUG(orig): only the error check tests for an overflow of the buffer (#73). Fixed (#74): a bitmap or shape of depth 0 loops 65536 times (DBF), refused at its creation in the error check area. Errors (debugger, bblitchk): "Uninitialized Buffer", "Shape does not
have a cookie cut", "Unitialized BitMap", "Uninialized Shape", "Shape
has too many BitPlanes", "Coords outside of BitMap", "Buffer Overflow". The shape comes in a3 (!libs {shapeslib,$1381}, from Shape# in d1).
- Parameters
-
| x | d2.w: x (the shape's handle is subtracted) |
| y | d3.w: y |
| b | a0: the buffer (!libs {bblitlib,$1080}, from Buffer# in d0) |
| cb | a1: the custom chip base $DFF000 (chipbaselib) |
| bm | a2: the used bitmap (!libs {bitmaplib,$1202}) |
BBlit Buffer#,Shape#,X,Y,Excessonoff (Blitz mode).
BBlit, then the bitmap planes beyond the shape's depth get A = cookie, minterm $0A (cleared) or $FA (set), one bit of Excessonoff per plane. Errors (debugger, bblitchk): as BBlit. The shape comes in a3 (!libs {shapeslib,$1381}, from Shape# in d1).
- Parameters
-
| x | d2.w: x (the shape's handle is subtracted) |
| y | d3.w: y |
| b | a0: the buffer (!libs {bblitlib,$1080}, from Buffer# in d0) |
| cb | a1: the custom chip base $DFF000 (chipbaselib) |
| bm | a2: the used bitmap (!libs {bitmaplib,$1202}) |
| bits | d4.w: Excessonoff, one bit per excess plane (set = $FA) |