|
| void | dostencil (void) |
| void | stencillib_doblit (void) |
| void | stencillib_doblitex (void) |
| void | stencillib_doblitmode (void) |
| void | dofreestencil (void) |
| void | sblitchk (void) |
| static void | doblitmode_c (UWORD m) |
| | SBlitMode BLTCON0 - the blitter minterm/channels for the blit of SBlit (default $FCA).
|
| | BLITZ_ALIAS (stencillib_doblitmode, doblitmode_c) |
| static void | freest (struct stencil *s) |
| static void | dofreestencil_c (void) |
| | Free Stencil (the object library's _free) - free the stencil's memory.
|
| static void | bigstencil (UBYTE *cb, const struct bb_bitmap *bm, UBYTE *mem) |
| static void | makestencil (struct stencil *s, const struct bb_bitmap *bm) |
| void | b_dostencil_c (const struct bb_bitmap *bm) |
| | Stencil Stencil#,BitMap# - make a stencil from a bitmap: the OR of all its planes (Blitz mode variant).
|
| void | a_dostencil_c (const struct bb_bitmap *bm, struct Library *gfx) |
| | Stencil Stencil#,BitMap# - Amiga mode variant: as the Blitz mode one between OwnBlitter and DisownBlitter.
|
| BL_ALWAYS_INLINE void | sblit (const struct stencil *s, const struct bb_shape *shape, const struct bb_bitmap *bm, UBYTE *cb, WORD x, WORD y, struct blitstate *st) |
| BL_ALWAYS_INLINE void | sblitex (const struct stencil *s, const struct bb_shape *shape, const struct bb_bitmap *bm, UBYTE *cb, WORD x, WORD y, UWORD bits) |
| static BLITZ_ENTRYPOINT void | b_doblit_c (WORD x, WORD y, const struct stencil *s, UBYTE *cb, const struct bb_bitmap *bm) |
| | SBlit Stencil#,Shape#,X,Y - blit a shape and add its cookie to the stencil (Blitz mode variant).
|
| | BLITZ_EP_MARK (b_doblit_c) |
| static void | a_doblit_c (WORD x, WORD y, const struct stencil *s, UBYTE *cb, const struct bb_bitmap *bm, struct Library *gfx) |
| | SBlit Stencil#,Shape#,X,Y - Amiga mode variant: as the Blitz mode one between OwnBlitter and DisownBlitter.
|
| static BLITZ_ENTRYPOINT void | b_doblitex_c (WORD x, WORD y, const struct stencil *s, UBYTE *cb, const struct bb_bitmap *bm, UWORD bits) |
| | SBlit Stencil#,Shape#,X,Y,Excessonoff - SBlit, then the bitmap's planes beyond the shape's depth (Blitz mode variant).
|
| | BLITZ_EP_MARK (b_doblitex_c) |
| static void | a_doblitex_c (WORD x, WORD y, const struct stencil *s, UBYTE *cb, const struct bb_bitmap *bm, UWORD bits, struct Library *gfx) |
| | SBlit Stencil#,Shape#,X,Y,Excessonoff - Amiga mode variant: as the Blitz mode one between OwnBlitter and DisownBlitter.
|
| static void | sblitchk_c (WORD x, WORD y, const struct stencil *s, const struct bb_bitmap *bm) |
SBlit Stencil#,Shape#,X,Y - blit a shape and add its cookie to the stencil (Blitz mode variant).
Blits like blitlib's Blit (BLTCON0 from SBlitMode) at x/y minus the shape's handle, then ORs the cookie into the stencil at the same position (BLTCON0 $BFA).
Errors (debugger, sblitchk): "Uninitialized Stencil", "Shape does not
have a cookie cut", "Unitialized BitMap", "Uninialized Shape", "Shape
has too many BitPlanes", "Coords outside of BitMap".
- Parameters
-
| x | d2: x position |
| y | d3: y position |
| s | a0: the stencil object |
| cb | a1: the chip base (chipbaselib) |
| bm | a2: the used bitmap; a3: the shape |
SBlit Stencil#,Shape#,X,Y,Excessonoff - SBlit, then the bitmap's planes beyond the shape's depth (Blitz mode variant).
Per excess plane bit 0 of Excessonoff chooses set ($BFA) or clear ($B0A) through the cookie, then the next bit.
Errors (debugger, sblitchk): as SBlit.
- Parameters
-
| x | d2: x position |
| y | d3: y position |
| s | a0: the stencil object |
| cb | a1: the chip base |
| bm | a2: the used bitmap; a3: the shape |
| bits | d4.w: one bit per excess plane |
| void b_dostencil_c |
( |
const struct bb_bitmap * | bm | ) |
|
Stencil Stencil#,BitMap# - make a stencil from a bitmap: the OR of all its planes (Blitz mode variant).
Frees the old stencil, allocates bytes per row * rows (CHIP, cleared) and ORs the planes into it with the blitter (A | C -> D, $DFF000 directly).
Fixed (#284): a bitmap of more than 1024 rows or 64 words is done in strips of at most 64 words by 1024 rows; the original's one blit of bltsize rows << 6 | bpr / 2 was right only up to those limits.
- Parameters
-
| bm | a2: the bitmap; a3: the stencil object |