|
| void | dobitmapoutput (void) |
| void | dobitmapinput (void) |
| void | docolour (void) |
| | Colour Foreground Colour,Background Colour: the colours of the bitmap output.
|
| void | docolour2 (void) |
| | Colour Foreground Colour: the foreground colour only.
|
| void | dolocate (void) |
| | Locate X,Y: the cursor of the bitmap output, in characters.
|
| void | docursx (void) |
| void | docursy (void) |
| void | fontlib_codeinit (void) |
| void | dousefont (void) |
| void | dofreefont (void) |
| void | bitout2 (void) |
| void | bitout3 (void) |
| void | locatechk (void) |
| void | bitout (void) |
| void | doinput1 (void) |
| void | doloadfont (const UBYTE *name, WORD used, const void *gfx, const void *diskfont) |
| | LoadBlitzFont BlitzFont#,Fontname.font$: load an 8x8 font.
|
| static void | freefont (ULONG *obj, const void *gfx) |
| static void | dofreefont_c (const void *gfx) |
| | _free of a BlitzFont object: close its font.
|
| static void | dousefont_c (void) |
| | _use of a BlitzFont object (Use BlitzFont n): the font for the output.
|
| static void | codeinit_c (WORD used, const void *gfx, const void *diskfont) |
| static ULONG | docursx_c (void) |
| | CursX: the cursor column of the bitmap output.
|
| | BLITZ_ALIAS (docursx, docursx_c) |
| static ULONG | docursy_c (void) |
| | CursY: the cursor line of the bitmap output.
|
| | BLITZ_ALIAS (docursy, docursy_c) |
| BL_ALWAYS_INLINE int | calcoff (struct bb_bitmap **bm, struct TextFont **font, LONG *lineoff) |
| BL_ALWAYS_INLINE void | docr (struct bb_bitmap *bm, UWORD *col, UWORD *row, LONG *lineoff) |
| BL_ALWAYS_INLINE void | bitchar (UBYTE c, struct bb_bitmap *bm, struct TextFont *font, LONG *lineoff) |
| static void | bitout_c (UBYTE c) |
| static void | bitout2_c (ULONG len, const UBYTE *s) |
| | bitout2 (token for other libraries, output handler -4): draw a string on the output bitmap.
|
| static void | bitout3_c (const UBYTE *s) |
| | bitout3 (token for other libraries, output handler -8): draw a null terminated string on the output bitmap, as bitout2.
|
| static void | dobitmapoutput_c (struct bb_bitmap *bm) |
| | BitMapOutput Bitmap#: print to a bitmap with the BlitzFont.
|
| | BLITZ_ALIAS (dobitmapoutput, dobitmapoutput_c) |
| static ULONG | getchar_old (void) |
| static void | docursor (struct bb_bitmap *bm, UWORD x) |
| static void | edstring (struct bb_bitmap *bm, UBYTE *buf, UWORD max, UWORD x) |
| static ULONG | doinput2_c (ULONG len, UBYTE *buf) |
| static void | dobitmapinput_c (void) |
| | BitMapInput: read with an editor on the output bitmap.
|
| | BLITZ_ALIAS (dobitmapinput, dobitmapinput_c) |
| static void | locatechk_c (void) |
| void bitout2_c |
( |
ULONG | len, |
|
|
const UBYTE * | s ) |
|
static |
bitout2 (token for other libraries, output handler -4): draw a string on the output bitmap.
Characters below tf_LoChar or above tf_HiChar are ignored (fixed, #148: the original compared signed bytes), 10 = new line; at the right edge a new line, below the bitmap nothing is drawn. By design (#149): a bitmap of depth 0 runs the plane loop 65536 times (the error check of BitMap/CludgeBitMap refuses such a bitmap). Errors: "Uninitialized BitMap", "Uninitialized Font" (DIFF: nothing drawn if the trap returns).
- Parameters
-
| len | d0: the length |
| s | a0: the string |
| void dobitmapinput_c |
( |
void | | ) |
|
|
static |
BitMapInput: read with an editor on the output bitmap.
doinput1 becomes the input handler (setin), the previous one is kept: single characters come from it, lines are edited on the bitmap (doinput2: printable characters inserted, 31/30 cursor left/right, 8 backspace, 127 delete, 13 return; the result is the line without trailing spaces). Blitz mode only (error1 = 1). BUG(orig) (#151): at the end of the input (-1 from the previous handler) the editor waits forever.
Colour Foreground Colour,Background Colour: the colours of the bitmap output.
MOVE.b d1,pback and on into the one-argument form. Changes no register.
In: d0.b the foreground colour (the planes that get the character bits), d1.b the background colour
| void doloadfont |
( |
const UBYTE * | name, |
|
|
WORD | used, |
|
|
const void * | gfx, |
|
|
const void * | diskfont ) |
LoadBlitzFont BlitzFont#,Fontname.font$: load an 8x8 font.
a3 = the object. The object becomes the used and the output font, its old font is closed, then OpenDiskFont with the TextAttr {name, 8, 0, 0}. Only non-proportional 8x8 fonts are accepted. Amiga mode only. Fixed (#150): a refused font is closed before the error (the original left it open). Errors (also without the debugger, err1 in the normal code): "Can't
Open Font".
- Parameters
-
| name | d1: the font name |
| used | d5: the offset of the library's used global from a5 (!libs fontlib,$0504) |
| gfx | d6: graphics.library (for freeing the old font) |
| diskfont | a6: diskfont.library |
Locate X,Y: the cursor of the bitmap output, in characters.
LSL #3,d0:LSL.l #3,d1:SWAP d1:MOVEM d0-d1,40(a0): the pixel cursor of the output bitmap (cursx, cursy) = x * 8, the integer part of y * 8. Not a bug: Y is a Quick, X a word. Changes d0, d1 and a0. Errors (debugger, locatechk): "Uninitialized BitMap".
In: d0.w the column, d1 the line (Quick)