Working on the TGI API, adding vector fonts. Only roughly tested!
git-svn-id: svn://svn.cc65.org/cc65/trunk@4432 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -216,12 +216,19 @@ void __fastcall__ tgi_circle (int x, int y, unsigned char radius);
|
||||
void __fastcall__ tgi_bar (int x1, int y1, int x2, int y2);
|
||||
/* Draw a bar (a filled rectangle) using the current color. */
|
||||
|
||||
void __fastcall__ tgi_textstyle (unsigned magwidth, unsigned magheight,
|
||||
unsigned char dir);
|
||||
/* Set the style for text output. The scaling factors for width and height
|
||||
void __fastcall__ tgi_textscale (unsigned width, unsigned height);
|
||||
/* Set the scaling for text output. The scaling factors for width and height
|
||||
* are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
|
||||
*/
|
||||
|
||||
void __fastcall__ tgi_textstyle (unsigned width, unsigned height,
|
||||
unsigned char dir, unsigned char font);
|
||||
/* Set the style for text output. The scaling factors for width and height
|
||||
* are 8.8 fixed point values. This means that $100 = 1 $200 = 2 etc.
|
||||
* dir is one of the TGI_TEXT_XXX constants. font is one of the TGI_FONT_XXX
|
||||
* constants.
|
||||
*/
|
||||
|
||||
unsigned __fastcall__ tgi_textwidth (const char* s);
|
||||
/* Calculate the width of the text in pixels according to the current text
|
||||
* style.
|
||||
|
||||
@@ -70,6 +70,19 @@ struct tgi_vectorfont {
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
void __fastcall__ tgi_vectorchar (const unsigned char* Ops);
|
||||
/* Draw one character of the vector font at the current graphics cursor
|
||||
* position using the current font magnification.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* End of tgi-vectorfont.h */
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user