]> granicus.if.org Git - graphviz/commitdiff
*** empty log message ***
authorarif <devnull@localhost>
Tue, 26 Feb 2008 16:43:51 +0000 (16:43 +0000)
committerarif <devnull@localhost>
Tue, 26 Feb 2008 16:43:51 +0000 (16:43 +0000)
lib/utilities/glTexFont.c

index 81eac17aeced9e80927a134b05d371448170ca4d..c5b0c79e7c009cf1c5ebb6a4fbac00310b224f2a 100755 (executable)
@@ -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