Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

Nehe Lesson 43: Some characters not printing

4: Adsense
  • You cannot reply to this topic
1 reply to this topic

#1 Leroy1981   Members   


Posted 15 April 2017 - 07:10 AM

When I run Nehe lesson 43 as is using Test.ttf at 16 height a few characters won't print. The uppercase Y, the lowercase g,p, and y. And when I alter the height it gets different. Different characters are missing when I put in height of 48 instead. I add    glPixelStorei(GL_PACK_ALIGNMENT, 1); and glPixelStorei(GL_UNPACK_ALIGNMENT, 1); to the init code and no change. Anyone had this issue or have any idea what might be happeing? Adding glPixelStore and changing the height is the only way I altered the original tutorial source, btw

#2 Mike2343   Members   


Posted 15 April 2017 - 11:41 AM

You know that tutorial is very, very old right?  It still uses OpenGL 2.x.  There are far more modern examples out there.


But from the sounds of your post, you might be jumping in beyond your knowledge of programming and graphics.  Check out the link above, should serve you much better unless there is a reason you want to use tech that is almost 10 years old? (OpenGL 3.0 was released in 2008)