Jump to content
  • Advertisement
Sign in to follow this  
sjoerd222

OpenGL UI

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

Hi Has somebody a good idea how to creat a UI in OpenGL? Something like a minimap for a strategy game for example. I use SDL and OpenGL. I foound when I göögled something about creating a texture with SDL and then load it on a plane. But this does not sound very good.

Share this post


Link to post
Share on other sites
Advertisement
There are different ways, not?

you could simply go for orthogonal rendering and use the depth buffer to create a display order in your elements, each element could then be a 2 dimensional polygon.

Then you can draw textures or text to that polygon.

Tbh I'm not sure myself & better suggestions are more than welcome, i'm also creating a basic UI-system atm, but I'm only creating the UI logic atm, not how it should be drawn.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!