projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683c8ff
)
add color to the api
author
Dana Jansens
<danakj@orodu.net>
Mon, 2 Jun 2003 01:39:53 +0000
(
01:39
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 2 Jun 2003 01:39:53 +0000
(
01:39
+0000)
glft/glft.h
patch
|
blob
|
history
glft/render.c
patch
|
blob
|
history
diff --git
a/glft/glft.h
b/glft/glft.h
index 55834539665c7e5e2280c4eb2a6e4dc5a4b6546d..daa569a8ac1a6c929be42ff69128c462983565af 100644
(file)
--- 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 1fa7429697d4793da232a3ed8ac164020404187a..354153933e70848a07f72009a30f6e7c75cd2c18 100644
(file)
--- 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;