Jump to content
  • Advertisement
Sign in to follow this  
mvNoise

Where to begin with GUI?

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

How does one create a GUI with C++? I don't want to use the default Windows UI components. Do I have to create my own using OpenGL? I'm just not too clear on this whole subject. I've been googling for hours now. My goal is to create a 3D pong clone in OpenGL/C++ -I would rather not use someone elses cryptic external library. -I'm also trying to avoid DirectX at all costs. My knowledge: I understand the fundamentals of computer science and C++ I've worked with OpenGL, C++, Win32 API. (made a tile-based map editor with no GUI)

Share this post


Link to post
Share on other sites
Advertisement
OpenGL doesn't provide a GUI system, heck it doesn't even provide a way of drawing text. So, you will have to create your own GUI. If you are looking for a simple menu system to be used in game it's not that hard.

- Implement a font manager so that you can draw arbitrary text anywhere on the screen. Look into font texture generators like Fluid Studios FontGen.

- Implement a keyboard/mouse selection system. For keyboard, you can just highlight the current menu selection, for mouse you will have to figure out the ranges of the xy coordinates and map them to menu entries.

- Finally, implement a menu state system so that you can enter submenus, exit them and bind scripts (or function callbacks) to each menu entry.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!