Skip to main content
gamedev.net
🔒 Locked

text problems

Started by logout Jan 31, 2004 at 11:07 AM 0 replies 200+ views
Original Post
logout
logout
Im currently trying to draw some text, i have loaded a font using CreateFont() then used SelectObject() and wglUseFontBitmaps() this works fine, ( i think im checking as many error values i can and nothing reports a error ) Now the real question come, how do i draw this ? as im doing it now:
glPushAttrib(GL_LIST_BIT);
                        glColor3ub(r,g,b); 
				glRasterPos2i( 64, 64 );
				glListBase( m_uFontStart - 32);
				glCallLists( strlen(str), GL_UNSIGNED_BYTE, str);
			glPopAttrib();
 
*im running 2D ortho mode* But i cant get any text to pop up on my screen ?? Why ?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.