Sunday, May 22, 2011

Fonts

Eventually, any project requires that we put some writing somewhere. This is a common issue in OpenGL projects, where there isn't native support for writing to the screen. After a look around possible solutions, I've decided to go with FTGL, which implements the functionality of FreeType 2 in a hopefully easy to use way.

Right now my interest is to throw some information up on the screen. Things like frames per second, for starters, so I have some notion of how different changes and platforms affect performance. Eventually, when more of a GUI is in place, it will be useful to have a library in place.

Thankfully SDL offers some handy ways of finding out time in milliseconds, as opposed to system time which runs in seconds.

No comments:

Post a Comment