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:
uz
2009-11-02 22:29:49 +00:00
parent fdc7604d8f
commit 87866e3099
8 changed files with 247 additions and 31 deletions

View File

@@ -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.

View File

@@ -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