From: Dana Jansens Date: Mon, 2 Jun 2003 01:39:53 +0000 (+0000) Subject: add color to the api X-Git-Tag: gl2~10 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=d9c375a235841784a246441fdf4d2af1eccb6244;p=dana%2Fopenbox.git add color to the api --- diff --git a/glft/glft.h b/glft/glft.h index 55834539..daa569a8 100644 --- a/glft/glft.h +++ b/glft/glft.h @@ -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); diff --git a/glft/render.c b/glft/render.c index 1fa74296..35415393 100644 --- a/glft/render.c +++ b/glft/render.c @@ -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;