add color to the api
authorDana Jansens <danakj@orodu.net>
Mon, 2 Jun 2003 01:39:53 +0000 (01:39 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 2 Jun 2003 01:39:53 +0000 (01:39 +0000)
glft/glft.h
glft/render.c

index 55834539665c7e5e2280c4eb2a6e4dc5a4b6546d..daa569a8ac1a6c929be42ff69128c462983565af 100644 (file)
@@ -18,10 +18,18 @@ void GlftFontClose(struct GlftFont *font);
 
 /* rendering */
 
+struct GlftColor {
+    float r;
+    float g;
+    float b;
+    float a;
+};
+
 /*! Renders a string in UTF-8 encoding */
 void GlftRenderString(struct GlftFont *font,
                       const char *str,
                       int bytes,
+                      struct GlftColor *color,
                       int x,
                       int y);
 
index 1fa7429697d4793da232a3ed8ac164020404187a..354153933e70848a07f72009a30f6e7c75cd2c18 100644 (file)
@@ -50,7 +50,7 @@ void GlftRenderGlyph(FT_Face face, struct GlftGlyph *g)
 }
 
 void GlftRenderString(struct GlftFont *font, const char *str, int bytes,
-                      int x, int y)
+                      struct GlftColor *color, int x, int y)
 {
     const char *c;
     struct GlftGlyph *g, *p = NULL;