41 base = glGenLists( count );
45 for(
unsigned int i=0; i < count; i++ ) {
46 cx = float(i%size)/(float)cpl;
47 cy = float(i/size)/(float)cpr;
49 glNewList( base + i, GL_COMPILE );
52 glTexCoord2f( cx, 1-cy-(1/(
float)cpr) );
54 glTexCoord2f( cx + (1/(
float)cpl), 1-cy-(1/(
float)cpr));
55 glVertex2i( targetsize, 0 );
56 glTexCoord2f( cx + (1/(
float)cpl), 1-cy);
57 glVertex2i( targetsize, targetsize );
58 glTexCoord2f( cx, 1-cy );
59 glVertex2i( 0, targetsize );
62 glTranslated( skipspace, 0, 0 );
81 glDeleteLists( base, count );
99 va_start( ap,
string );
100 vsprintf_s( text,
string, ap );
107 glPushAttrib( GL_LIST_BIT );
108 glTranslated( x, y, 0 );
109 glListBase( base - 32 );
111 glCallLists( (
int)strlen(text), GL_UNSIGNED_BYTE, text );
123 print(x, y, text->c_str());