PDA

View Full Version : wglUseFontBitmaps 3 dimensional



LuisAK
07-13-2014, 03:38 AM
can I display text created with wglUseFontBitmaps(..) also in 3 dimensions ?
The text ist displayed by glcallists(..)



lFont := TFont.Create;
lFont.Name := 'arial';
lFont.Size := 32;
lFont.Style := [fsBold]; // Styles (fsBold, fsItalic, ...)
SelectObject(h_DC, lFont.Handle);
wglUseFontBitmaps (h_DC, 0, 255, base);

glTranslatef(-1,0.0,0.0);
glPushAttrib(GL_LIST_BIT);
glRasterPos3f(-0.1,0,-1);
glrotatef(0.5,0,1,0);
glListBase(base);
glCallLists(length(text),GL_UNSIGNED_BYTE,Pchar(te xt));
glPopAttrib;