From: Derek Foreman Date: Fri, 30 May 2003 00:01:05 +0000 (+0000) Subject: fixed positioning, removed hardcoded color X-Git-Tag: gl2~19 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f9857769ea9d6f978e49cfcc863b54f2b160c4eb;p=dana%2Fopenbox.git fixed positioning, removed hardcoded color added a shadow to the test --- diff --git a/glft/render.c b/glft/render.c index 5e732307..1fa74296 100644 --- a/glft/render.c +++ b/glft/render.c @@ -61,7 +61,7 @@ void GlftRenderString(struct GlftFont *font, const char *str, int bytes, } glPushMatrix(); - + glTranslatef(x, y, 0.0); c = str; while (c - str < bytes) { g = GlftFontGlyph(font, c); @@ -70,7 +70,6 @@ void GlftRenderString(struct GlftFont *font, const char *str, int bytes, glBindTexture(GL_TEXTURE_2D, g->tnum); glBegin(GL_QUADS); - glColor3f(1.0, 1.0, 0.0); glTexCoord2f(0, g->texh/(float)g->pady); glVertex2i(g->left, 0 - g->yoff); diff --git a/glft/test.c b/glft/test.c index 38e67170..771f5fd4 100644 --- a/glft/test.c +++ b/glft/test.c @@ -99,6 +99,9 @@ int main(int argc, char **argv) quit = 1; case Expose: glClear(GL_COLOR_BUFFER_BIT); + glColor3f(0.0, 0.0, 0.0); + GlftRenderString(font, argv[2], strlen(argv[2]), 2, -2); + glColor3f(1.0, 1.0, 0.0); GlftRenderString(font, argv[2], strlen(argv[2]), 0, 0); glXSwapBuffers(display, win); case ConfigureNotify: