Jump to content
  • Advertisement
Sign in to follow this  
JMinator31

Toolbar in C++ and OpenGL

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

I am making a 3D app in OpenGL. It just loads some textured primitives and moves around the scene. But it's purpose isn't important. I recently added a toolbar to the app, and when the app starts, the toolbar flashes for a split second and then disappears, but it still maintains all of it's functionality (if you click where one of the buttons should be, it will execute the function accordingly). I need to know how I can fix this.

Share this post


Link to post
Share on other sites
Advertisement

Are you redrawing the toolbar every frame? Remember that once you swap the buffers the contents of the framebuffer are undefined and you're supposed to redraw everything.

Share this post


Link to post
Share on other sites
A little offtopic, but are you making a toolbar because you need one, or because you want to learn to hand-code one? Is it to be used by the player, or is it for development purposes?

Hand-coding UI becomes a huge time sink the moment you need more than a few simple buttons. If you just need the functionality, it would be a good idea to use a solid existing UI toolkit.

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!