|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
Data Structures | |
| struct | point |
| struct | edge |
Macros | |
| #define | CHUNKY(cl) |
| #define | BLTCON0 0x40 |
| #define | BLTCON1 0x42 |
| #define | BLTAFWM 0x44 |
| #define | BLTALWM 0x46 |
| #define | BLTCPT 0x48 |
| #define | BLTBPT 0x4c |
| #define | BLTDPT 0x54 |
| #define | BLTSIZE 0x58 |
| #define | BLTSIZV 0x5c |
| #define | BLTSIZH 0x5e |
| #define | BLTCMOD 0x60 |
| #define | BLTBMOD 0x62 |
| #define | BLTDMOD 0x66 |
| #define | BLTADAT 0x74 |
| #define | CHIPW(o) |
| #define | CHIPL(o) |
| #define | BLITWAIT() |
| #define | BMI_W(a, b) |
| #define | POINTMAX 16 |
| #define | EDGEMAX (POINTMAX - 1) |
Typedefs | |
| typedef UBYTE *(* | renderfn) (WORD n, const struct point *pts, UWORD colour, UBYTE *a3) |
Functions | |
| void | _chunkycls (void) |
| void | _chunkyplot (void) |
| void | _chunkyplotclip (void) |
| void | _chunkyvlin (void) |
| void | _chunkyvlinclip (void) |
| void | _chunkypoly (void) |
| void | _chunkypoly2 (void) |
| void | _bitmappoly (void) |
| void | _bitmappoly2 (void) |
| void | _rendertobitmap (void) |
| void | _rendertobitmap2 (void) |
| void | _rendertochunky (void) |
| void | _rendertochunky2 (void) |
| void | _renderpoly (void) |
| void | _polychk (void) |
| void | _chunkyvlinchk (void) |
| void | _renderpolychk (void) |
| static UBYTE * | render_none (WORD n, const struct point *pts, UWORD colour, UBYTE *a3) |
| static WORD | muldiv (WORD a, WORD b, WORD c) |
| static ULONG | edge_step (ULONG pos, ULONG step, UWORD unit) |
| static ULONG | edge_start (WORD x, UWORD unit) |
| static int | next_edge (const struct edge **list, UWORD *lines, ULONG *step) |
| static UWORD * | side (UWORD *list, WORD x, WORD y, const struct point *p, int dir, int right) |
| static UWORD * | outline (UWORD n) |
| static UWORD * | polygon (WORD n, const struct point *pts, int swap) |
| static void | _chunkycls_c (UWORD c) |
| BLITZ_ALIAS (_chunkycls, _chunkycls_c) | |
| static UWORD * | chunkypixel (const struct bb_coplist *cl, UWORD x, UWORD y) |
| static void | _chunkyplot_c (UWORD x, UWORD y, UWORD colour) |
| BLITZ_ALIAS (_chunkyplot, _chunkyplot_c) | |
| static void | _chunkyplotclip_c (WORD x, WORD y, UWORD colour) |
| BLITZ_ALIAS (_chunkyplotclip, _chunkyplotclip_c) | |
| static void | chunkyvlin (const struct bb_coplist *cl, UWORD x, UWORD y1, UWORD y2, UWORD colour) |
| static void | _chunkyvlin_c (UWORD x, UWORD y1, UWORD y2, UWORD colour) |
| BLITZ_ALIAS (_chunkyvlin, _chunkyvlin_c) | |
| static void | _chunkyvlinclip_c (WORD x, WORD y1, WORD y2, UWORD colour) |
| BLITZ_ALIAS (_chunkyvlinclip, _chunkyvlinclip_c) | |
| static UBYTE * | chunkypoly (WORD n, const struct point *pts, UWORD colour, struct bb_coplist *cl, int cpu) |
| static void | _chunkypoly_c (WORD n, ULONG pts, UWORD colour) |
| BLITZ_ALIAS (_chunkypoly, _chunkypoly_c) | |
| static void | _chunkypoly2_c (WORD n, ULONG pts, UWORD colour) |
| BLITZ_ALIAS (_chunkypoly2, _chunkypoly2_c) | |
| static int | span (ULONG left, ULONG right, UWORD rtclip, UWORD *first, UWORD *words) |
| static UBYTE * | bitmappoly (WORD n, const struct point *pts, UWORD colour, struct bb_bitmap *bm) |
| static UBYTE * | bitmappoly_dither (WORD n, const struct point *pts, UWORD colour, struct bb_bitmap *bm, struct bb_bitmap *dither) |
| static void | _bitmappoly_c (WORD n, ULONG pts, UWORD colour) |
| BLITZ_ALIAS (_bitmappoly, _bitmappoly_c) | |
| static void | _bitmappoly2_c (WORD n, ULONG pts, UWORD colour, struct bb_bitmap *dither) |
| BLITZ_ALIAS (_bitmappoly2, _bitmappoly2_c) | |
| static UBYTE * | render_bitmap (WORD n, const struct point *pts, UWORD colour, UBYTE *a3) |
| static UBYTE * | render_dither (WORD n, const struct point *pts, UWORD colour, UBYTE *a3) |
| static UBYTE * | render_chunky (WORD n, const struct point *pts, UWORD colour, UBYTE *a3) |
| static void | _rendertobitmap_c (struct bb_bitmap *bm) |
| BLITZ_ALIAS (_rendertobitmap, _rendertobitmap_c) | |
| static void | _rendertobitmap2_c (struct bb_bitmap *bm, struct bb_bitmap *dither) |
| BLITZ_ALIAS (_rendertobitmap2, _rendertobitmap2_c) | |
| static void | _rendertochunky_c (struct bb_coplist *cl) |
| BLITZ_ALIAS (_rendertochunky, _rendertochunky_c) | |
| static void | _rendertochunky2_c (UWORD split, UBYTE *cl) |
| BLITZ_ALIAS (_rendertochunky2, _rendertochunky2_c) | |
| static void | _renderpoly_c (WORD n, ULONG pts, UWORD colour) |
| BLITZ_ALIAS (_renderpoly, _renderpoly_c) | |
| static void | _polychk_c (WORD n) |
| static void | _chunkyvlinchk_c (WORD y1, WORD y2) |
| static void | _renderpolychk_c (WORD n, UWORD colour) |
Variables | |
| static const UWORD | cols [15] |
| static renderfn | polyvector = render_none |
| static struct bb_bitmap * | bmap0 |
| static struct bb_bitmap * | bmap1 |
| static struct bb_coplist * | chunk0 |
| static struct point | polypts [2 *POINTMAX] |
| struct { | |
| UWORD width | |
| UWORD height | |
| struct { | |
| WORD left | |
| WORD y | |
| WORD right | |
| } top | |
| UWORD ledges [EDGEMAX *3+2] | |
| UWORD redges [EDGEMAX *3+2] | |
| } | pv |
| static const UWORD | lup1 [16] |
| static const UWORD | lup2 [16] |
| #define BLITWAIT | ( | ) |
| #define BLTADAT 0x74 |
| #define BLTAFWM 0x44 |
| #define BLTALWM 0x46 |
| #define BLTBMOD 0x62 |
| #define BLTBPT 0x4c |
| #define BLTCMOD 0x60 |
| #define BLTCON0 0x40 |
| #define BLTCON1 0x42 |
| #define BLTCPT 0x48 |
| #define BLTDMOD 0x66 |
| #define BLTDPT 0x54 |
| #define BLTSIZE 0x58 |
| #define BLTSIZH 0x5e |
| #define BLTSIZV 0x5c |
| #define BMI_W | ( | a, | |
| b ) |
| #define CHIPL | ( | o | ) |
| #define CHIPW | ( | o | ) |
| #define CHUNKY | ( | cl | ) |
| #define EDGEMAX (POINTMAX - 1) |
| #define POINTMAX 16 |
| void _bitmappoly | ( | void | ) |
| void _bitmappoly2 | ( | void | ) |
|
static |
|
static |
| void _chunkycls | ( | void | ) |
|
static |
| void _chunkyplot | ( | void | ) |
|
static |
| void _chunkyplotclip | ( | void | ) |
|
static |
| void _chunkypoly | ( | void | ) |
| void _chunkypoly2 | ( | void | ) |
|
static |
|
static |
| void _chunkyvlin | ( | void | ) |
|
static |
| void _chunkyvlinchk | ( | void | ) |
|
static |
| void _chunkyvlinclip | ( | void | ) |
|
static |
| void _polychk | ( | void | ) |
|
static |
| void _renderpoly | ( | void | ) |
|
static |
| void _renderpolychk | ( | void | ) |
|
static |
| void _rendertobitmap | ( | void | ) |
| void _rendertobitmap2 | ( | void | ) |
|
static |
| void _rendertochunky | ( | void | ) |
| void _rendertochunky2 | ( | void | ) |
|
static |
|
static |
|
static |
| BLITZ_ALIAS | ( | _bitmappoly | , |
| _bitmappoly_c | ) |
| BLITZ_ALIAS | ( | _bitmappoly2 | , |
| _bitmappoly2_c | ) |
| BLITZ_ALIAS | ( | _chunkycls | , |
| _chunkycls_c | ) |
| BLITZ_ALIAS | ( | _chunkyplot | , |
| _chunkyplot_c | ) |
| BLITZ_ALIAS | ( | _chunkyplotclip | , |
| _chunkyplotclip_c | ) |
| BLITZ_ALIAS | ( | _chunkypoly | , |
| _chunkypoly_c | ) |
| BLITZ_ALIAS | ( | _chunkypoly2 | , |
| _chunkypoly2_c | ) |
| BLITZ_ALIAS | ( | _chunkyvlin | , |
| _chunkyvlin_c | ) |
| BLITZ_ALIAS | ( | _chunkyvlinclip | , |
| _chunkyvlinclip_c | ) |
| BLITZ_ALIAS | ( | _renderpoly | , |
| _renderpoly_c | ) |
| BLITZ_ALIAS | ( | _rendertobitmap | , |
| _rendertobitmap_c | ) |
| BLITZ_ALIAS | ( | _rendertobitmap2 | , |
| _rendertobitmap2_c | ) |
| BLITZ_ALIAS | ( | _rendertochunky | , |
| _rendertochunky_c | ) |
| BLITZ_ALIAS | ( | _rendertochunky2 | , |
| _rendertochunky2_c | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| UWORD height |
| UWORD ledges[EDGEMAX *3+2] |
| WORD left |
|
static |
|
static |
|
static |
| struct { ... } pv |
| UWORD redges[EDGEMAX *3+2] |
| WORD right |
| struct { ... } top |
| UWORD width |
| WORD y |