Jump to content
  • Advertisement

Archived

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

Joe-Bob

Evil Fonts of d00m

This topic is 5556 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

I''m using NeHe''s Latest Basecode, and no matter what I try, I can''t display fonts. I''ve followed Lesson 13 to the letter and even commented out all other rendering, but I can''t get it to work. Anyone ever have a problem like this?

Share this post


Link to post
Share on other sites
Advertisement
I''m pretty much using tutorial #13, but here''s the applicable render code:


  
(Start of the code renders the rest of my crap)

glDisable(GL_TEXTURE_2D);
glDisable(GL_BLEND);
glEnable(GL_DEPTH_TEST); // Enable Depth Testing

glLoadIdentity(); // Reset The View

glTranslatef(0.0f,0.0f,-1.0f); // Move One Unit Into The Screen


// Position The Text On The Screen

glRasterPos2f(-0.45f+0.05f*float(cos(cnt1)), 0.35f*float(sin(cnt2)));

glPrint("Active OpenGL Text With NeHe - %7.2f", cnt1); // Print GL Text To The Screen

cnt1+=0.051f; // Increase The First Counter

cnt2+=0.005f; // Increase The Second Counter

glEnable(GL_TEXTURE_2D);
glEnable(GL_BLEND);

glFlush (); // Flush The GL Rendering Pipeline

}


The glPrint itself is from tutorial 13 as I just said, and no, I haven''t called the glOrtho command.

Share this post


Link to post
Share on other sites
Ok, I just unzipped the ''NeHe Latest Basecode'' again with a new project, followed the instructions, and it still doesn''t work.
Anybody else have any trouble with the basecode?

Share this post


Link to post
Share on other sites
Plus... just now I downloaded the ''Simple Basecode'' and the SAME font stuff worked perfectly. Anybody have similar experiences with the basecodes?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!