Advertisement Jump to content


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


OpenGL Question about using Truetype fonts in OpenGL with SDL

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

Does anyone know if it''s possible to use Truetype fonts in OpenGL using SDL, without having to convert a surface to OpenGL format? I''m looking at the SDL_ttf package and in the OpenGL example, the Freetype library renders the text to an SDL surface. Then the code converts this surface to a specific OpenGL format. This happens every frame, which must be wasteful on CPU time. Is there a way around this? Thanks

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!