PDA

View Full Version : How to draw Platform-independent text ?



jazyvytkh
12-13-2007, 03:43 AM
Hi ,
I came across the following problem:
How to draw platform-independent text with OpenGL ?
I use Qt now to develop my application and cannot find something adecvate to wglUseFontOutlines in Linux.
I don't know how to implement the following part:

CFont* oldfont = pDC->SelectObject( pFont );
ASSERT(oldfont);

if (!wglUseFontOutlines( pDC->m_hDC, 0, 256, m_DisplayList, 0.0f,
(float)xt, WGL_FONT_POLYGONS, m_Gmf) )
{
glDeleteLists( m_DisplayList, 256 );
m_DisplayList = 0;
}
else
pDC->SelectObject( oldfont );


Thanks for help in advance

ZbuffeR
12-13-2007, 05:42 AM
No need to dupe.
Just continue there :
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=231562#Post231562