19 text =
new char[strlen(_text)+1];
33 glDeleteLists(
dList, 1);
49 double wide, charWidth;
55 glGetIntegerv(GL_MATRIX_MODE, &matrixMode);
58 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
63 glGetIntegerv(GL_MATRIX_MODE, &matrixMode);
65 dList = glGenLists(1);
66 glNewList(
dList, GL_COMPILE);
68 glDisable(GL_DEPTH_TEST);
71 glMatrixMode(GL_PROJECTION);
74 glMatrixMode(GL_MODELVIEW);
81 for (
unsigned int x = 0; x < strlen(
text); x++)
84 np.x+=(x%
charLine)*charWidth+charWidth/7.5;
85 np.z-=(x/
charLine)*charWidth*2+charWidth/7.5;
96 glMatrixMode(GL_PROJECTION);
98 glMatrixMode(matrixMode);
100 glEnable(GL_DEPTH_TEST);
111 glMatrixMode(GL_PROJECTION);
114 glMatrixMode(GL_MODELVIEW);
122 glTranslated(0, -1.0/350.0, 0);
125 glTranslated(0, -1.0/350.0, 0);
132 glMatrixMode(GL_PROJECTION);
134 glMatrixMode(matrixMode);
161 for (
int x = 0; x < 30; x++)
204 uint32_t index[128] = {
238 (1<<5)|(1<<11)|(1<<24),
245 (1<<3)|(1<<9)|(1<<16)|(1<<23),
246 (1<<7)|(1<<13)|(1<<20)|(1<<25),
247 (1<<10)|(1<<11)|(1<<12)|(1<<14)|(1<<15)|(1<<17)|(1<<18)|(1<<19),
252 (1<<8)|(1<<12)|(1<<18)|(1<<22),
254 (1<<3)|(1<<7)|(1<<9)|(1<<12)|(1<<13)|(1<<16)|(1<<17)|(1<<20)|(1<<23)|(1<<25),
256 (1<<3)|(1<<5)|(1<<11)|(1<<18)|(1<<24)|(1<<28)|(1<<29),
258 (1<<3)|(1<<1)|(1<<8)|(1<<13)|(1<<15)|(1<<17)|(1<<21)|(1<<28)|(1<<29),
260 (1<<0)|(1<<7)|(1<<13)|(1<<15)|(1<<20)|(1<<25)|(1<<28),
262 (1<<3)|(1<<9)|(1<<14)|(1<<15)|(1<<11)|(1<<18)|(1<<24),
264 (1<<0)|(1<<1)|(1<<2)|(1<<9)|(1<<14)|(1<<19)|(1<<27)|(1<<28)|(1<<29),
266 (1<<0)|(1<<1)|(1<<2)|(1<<9)|(1<<14)|(1<<19)|(1<<27)|(1<<28)|(1<<29)|(1<<16)|(1<<21),
268 (1<<0)|(1<<1)|(1<<8)|(1<<12)|(1<<18)|(1<<24),
270 (1<<0)|(1<<1)|(1<<2)|(1<<8)|(1<<9)|(1<<13)|(1<<14)|(1<<15)|(1<<16)|(1<<20)|(1<<21)|(1<<27)|(1<<28)|(1<<29),
272 (1<<0)|(1<<1)|(1<<2)|(1<<8)|(1<<9)|(1<<13)|(1<<14)|(1<<15)|(1<<20)|(1<<27)|(1<<28)|(1<<29),
278 (1<<2)|(1<<1)|(1<<0)|(1<<8)|(1<<12)|(1<<24),
281 (1<<1)|(1<<3)|(1<<8)|(1<<9)|(1<<13)|(1<<14)|(1<<15)|(1<<16)|(1<<20)|(1<<21)|(1<<27),
283 (1<<0)|(1<<2)|(1<<7)|(1<<9)|(1<<12)|(1<<14)|(1<<16)|(1<<19)|(1<<21)|(1<<27)|(1<<28)|(1<<29),
285 (1<<0)|(1<<1)|(1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<28)|(1<<29),
287 (1<<0)|(1<<2)|(1<<7)|(1<<9)|(1<<13)|(1<<16)|(1<<20)|(1<<21)|(1<<25)|(1<<28),
289 (1<<0)|(1<<1)|(1<<2)|(1<<9)|(1<<14)|(1<<16)|(1<<21)|(1<<28)|(1<<29),
291 (1<<0)|(1<<1)|(1<<2)|(1<<9)|(1<<14)|(1<<16)|(1<<21),
293 (1<<0)|(1<<1)|(1<<2)|(1<<8)|(1<<9)|(1<<15)|(1<<16)|(1<<20)|(1<<21)|(1<<25)|(1<<28),
295 (1<<2)|(1<<8)|(1<<9)|(1<<13)|(1<<14)|(1<<15)|(1<<16)|(1<<20)|(1<<21)|(1<<27),
297 (1<<0)|(1<<1)|(1<<5)|(1<<11)|(1<<18)|(1<<24)|(1<<28)|(1<<29),
299 (1<<1)|(1<<8)|(1<<13)|(1<<20)|(1<<21)|(1<<25)|(1<<28),
301 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<14)|(1<<12)|(1<<19)|(1<<8)|(1<<27),
303 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<28)|(1<<29),
305 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<8)|(1<<13)|(1<<20)|(1<<27)|(1<<0)|(1<<1)|(1<<5)|(1<<11),
307 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<0)|(1<<7)|(1<<13)|(1<<20)|(1<<27),
309 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<8)|(1<<13)|(1<<20)|(1<<27)|(1<<0)|(1<<1)|(1<<28)|(1<<29),
311 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<0)|(1<<14)|(1<<7)|(1<<12),
313 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<8)|(1<<13)|(1<<20)|(1<<0)|(1<<1)|(1<<28)|(1<<25)|(1<<26),
315 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<0)|(1<<14)|(1<<7)|(1<<13)|(1<<15)|(1<<19)|(1<<27),
317 (1<<0)|(1<<1)|(1<<2)|(1<<9)|(1<<14)|(1<<15)|(1<<20)|(1<<27)|(1<<28)|(1<<29),
319 (1<<0)|(1<<1)|(1<<5)|(1<<11)|(1<<18)|(1<<24),
321 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<8)|(1<<13)|(1<<20)|(1<<27)|(1<<28)|(1<<29),
323 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<8)|(1<<13)|(1<<20)|(1<<25)|(1<<28),
325 (1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<8)|(1<<13)|(1<<20)|(1<<25)|(1<<28)|(1<<18)|(1<<24),
327 (1<<2)|(1<<21)|(1<<10)|(1<<17)|(1<<12)|(1<<19)|(1<<8)|(1<<27),
329 (1<<2)|(1<<10)|(1<<18)|(1<<12)|(1<<24)|(1<<8),
331 (1<<0)|(1<<1)|(1<<8)|(1<<12)|(1<<17)|(1<<21)|(1<<28)|(1<<29),
333 (1<<0)|(1<<2)|(1<<9)|(1<<16)|(1<<21)|(1<<28),
335 (1<<1)|(1<<8)|(1<<13)|(1<<20)|(1<<27)|(1<<29),
371 return index[(int)c];
376 double unit = scale/4;
377 glVertex2f(where.x+startx*unit, where.y-starty*unit);
378 glVertex2f(where.x+startx*unit+offsetx*unit, where.y-starty*unit-offsety*unit);