Jump to content
  • Advertisement
Sign in to follow this  
iamspecial

gui opengl

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

Advertisement
MS Paint uses standard Windows controls from the Windows API, which you can't use if you're using OpenGL. You'll either have to implement these controls yourself, or use a library like GLUI.

Share this post


Link to post
Share on other sites
I'm sorry but I've never used GLUI, and I'm not familiar with DevC++. Hopefully someone will come by that has some experience in this area.

Share this post


Link to post
Share on other sites
Quote:
Original post by MJP
MS Paint uses standard Windows controls from the Windows API, which you can't use if you're using OpenGL. You'll either have to implement these controls yourself, or use a library like GLUI.


why do you think you cant use the controls from the Windows API if you are using OpenGL? of course you can.

Share this post


Link to post
Share on other sites
As the above poster mentioned, you can simply use standard windows controls, and just use OpenGL for the rendering. If you have never used standard windows controls, mabey this might help.

Share this post


Link to post
Share on other sites
As the last two posters have stated, it's perfectly fine to use OpenGL and windows components in the same program. I've done it plenty of times. My suggestion to you would be to start looking at a bunch of basic Win32 tutorials and try to play around with the various buttons and lists, and textfields and widgets (before hooking in OpenGL). Win32 is complicated enough if you've never messed with anything like it so just go through a bunch of tutorials and use MSDN for reference when you want to know how something works or why something isn't working.

Then you can grab the first couple OpenGL tutorials that you can find at most sites (NeHe for example) which will show you how to set up and use OpenGL in a Win32 environment.

I HIGHLY recommend using Microsoft's Visual Studio IDE (you can get a free version, or shell out a couple hundred for your own copy) rather than DevC++ especially if you are doing windows programming. You can even use the IDE to generate the bitmaps for all your custom buttons and such (and most tutorials come in the form of a visual studio project).

Share this post


Link to post
Share on other sites
actually the fact is :

i already have the basic knowledge of using windows programming in opengl in
dev c++ ( i know how to use messagebox etc etc)

but i dont know how to create a button type of thing on my opengl window
i downloaded glui package but is still feeling helpless

can someone tell me how to create a button type of thing on my opengl window

thanks

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.

GameDev.net 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!