From d9c375a235841784a246441fdf4d2af1eccb6244 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 2 Jun 2003 01:39:53 +0000 Subject: [PATCH] add color to the api --- glft/glft.h | 8 ++++++++ glft/render.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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; -- 2.34.1