Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jpb96b

lesson 13

This topic is 5656 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is a great lesson on how to work with fonts, but it doesn''t seem to be working for me. Instead of using the windows api for my window handling I''ve been using glutCreateWindow() etc, so maybe this is the problem. But I''ve looked carefully over my code for building fonts and using them and there seems to be some problem because nothing shows up in my viewing window. Are there some settings I should be mindful of if I want to use glut windowing, or is it impossible if I also want Windows fonts? Thanks. Jason

Share this post


Link to post
Share on other sites
Advertisement
The code on nehe''s site will not work if you are using glut because u need to use the DC that opengl is using to draw the text. Unless glut will give the DC to you, you cannot draw font. If you do want to use glut, there are built in functions that do it for you. Just google something like "Glut"+"font" or something like that. you could always also use nehe''s basecode(I would recomend this).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!