From f08ee7d8beca45092ed9f53cf81a770b83e53cd9 Mon Sep 17 00:00:00 2001 From: arif Date: Tue, 26 Feb 2008 16:43:51 +0000 Subject: [PATCH] *** empty log message *** --- lib/utilities/glTexFont.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/utilities/glTexFont.c b/lib/utilities/glTexFont.c index 81eac17ae..c5b0c79e7 100755 --- a/lib/utilities/glTexFont.c +++ b/lib/utilities/glTexFont.c @@ -109,20 +109,20 @@ void fontDrawChar (char c, int x, int y, int size, int shadow) glBegin (GL_QUADS); glTexCoord2f (tPoints[(int)c][0], tPoints[(int)c][1]); - glVertex2i (x, y); + glVertex3i (x, y,0); glTexCoord2f (tPoints[(int)c][0] + font.tIncX, tPoints[(int)c][1]); - glVertex2i (x + size, y); + glVertex3i (x + size, y,0); if (!shadow) glColor4fv (font.fgColor); else glColor4fv (font.bgColor); glTexCoord2f (tPoints[(int)c][0] + font.tIncX, tPoints[(int)c][1] + font.tIncY); - glVertex2i (x + size + font.italic, y + size); + glVertex3i (x + size + font.italic, y + size,0); glTexCoord2f (tPoints[(int)c][0], tPoints[(int)c][1] + font.tIncY); - glVertex2i (x + font.italic, y + size); + glVertex3i (x + font.italic, y + size,0); glEnd (); } /* @@ -243,6 +243,10 @@ void fontSize (int size) { font.size = size; } +void fontzdepth(float zdepth) +{ + font.zdepth=zdepth; +} /* ============= fontShadow -- 2.40.0