• Advertisement
Sign in to follow this  

Bitmap fonts

This topic is 4370 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 having some trouble with this bitmap font code I copied from NeHe:
void PutText(int x, int y, const char* text, ColourData* colour)
	glListBase(BaseFont - 32);
	glCallLists(strlen(text), GL_UNSIGNED_BYTE, text);
It renders text, but for some reason, when I call it as: PutText(10,10,"Test",&NormalColour); It starts from the bottom left hand corner (It's inside a glEnable2D which reverses the axes, so that's wrong), and then flies horizontally across the screen. I'm not incrementing anything... any idea why it's not working?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement