Screen Coordinates with OpenGL + SDL
Hi, this is my first post but i have been following this forum and nehe tutorials for a while.
I have a project using SDL and OpenGL, and I'm trying to write some messages on the screen. I know I can't use SDL Surface Bliting because I'm using OpenGl. And I tried some suggestions I found over the internet about using textures with the letters, but this only works in world coordinates and not on the screen.
I also tried unsing glProject and glUnproject to compute a 2d location, but it didn't worked.
Could anyone help me? I can post a zip with the current code if someone wants to take a look at it.
Thanks!
Merry Christmas
I'm assuming you are simply trying to overlay some regular 2D text on the screen - in much the same way as a game with a HUD. If this is the case, one simple way is to create a separate pass. In that pass define a regular 2D orographic view and display the text.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement