Skip to main content
gamedev.net
🔒 Locked

Text Alignment

Started by styrka 0 replies 500+ views
Original Post
styrka
styrka
Hey, actually I'm working on a graphical user system for my game engine. But I've a small problem: Is there a way to align text vertically or horizontally? The engine use Bitmap fonts like in the Nehe tutorial number 13(Link) The text is actually positioned with (with glOrtho) glRasterPos2f(position.x+size.width/2, position.y+size.height/2+font->getHeight()/2); cheers styrka

Topic Locked

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

Sign in to reply to this topic.