]> git.sur5r.net Git - cc65/blobdiff - include/tgi.h
Optimize low color packed sprites
[cc65] / include / tgi.h
index bd312dc633d84615ee82826c2d65b5cdb770b9e0..2cbea5bd06dad3b6c1de42024fee04ef3ed7ffd3 100644 (file)
 
 
 
-/* Font constants for use with tgi_textstyle */
+/* Font constants for use with tgi_settextstyle */
 #define TGI_FONT_BITMAP         0
 #define TGI_FONT_VECTOR         1
 
-/* Direction constants for use with tgi_textstyle */
+/* Direction constants for use with tgi_settextstyle */
 #define TGI_TEXT_HORIZONTAL     0
 #define TGI_TEXT_VERTICAL       1
 
 /* The name of the standard tgi driver for a platform */
 extern const char tgi_stddrv[];
 
+/* The address of the static standard tgi driver for a platform */
+extern const void tgi_static_stddrv[];
+
 /* A vector font definition */
 typedef struct tgi_vectorfont tgi_vectorfont;
 
@@ -228,6 +231,11 @@ void __fastcall__ tgi_pieslice (int x, int y, unsigned char rx, unsigned char ry
 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_settextdir (unsigned char dir);
+/* Set the direction for text output. dir is one of the TGI_TEXT_XXX
+ * constants.
+ */
+
 void __fastcall__ tgi_settextscale (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.