- if (set>1)
- {
- set=1;
- }
- glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
- glBindTexture(GL_TEXTURE_2D, FontTexture); // Select Our Font Texture
- glDisable(GL_DEPTH_TEST); // Disables Depth Testing
- glDisable(GL_LIGHTING);
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
- glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
- glPushMatrix(); // Store The Projection Matrix
- glLoadIdentity(); // Reset The Projection Matrix
- glOrtho(0,width,0,height,-100,100); // Set Up An Ortho Screen
- glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
- glPushMatrix(); // Store The Modelview Matrix
- glLoadIdentity();
- glTranslated(x,y,0); // Position The Text (0,0 - Bottom Left)
- glScalef(size,size,1); // Reset The Modelview Matrix
- glListBase(base-32+(128*set)+256); // Choose The Font Set (0 or 1)
- glCallLists(end-start,GL_BYTE,&string[start]); // Write The Text To The Screen
- glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
- glPopMatrix(); // Restore The Old Projection Matrix
- glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
- glPopMatrix(); // Restore The Old Projection Matrix
- glEnable(GL_DEPTH_TEST); // Enables Depth Testing
- glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
+ glPrintOutline(x, y, string, set, size, width, height, 0, strlen(string));