gui opengl
can somebody tell me how to create a gui like that of MS PAINT using opengl in
dev c++ ..
thanks
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.
thanks for the link
i downloaded the package there
but i still cant figure out how to use it????????
i downloaded the package there
but i still cant figure out how to use it????????
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.
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.
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.
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).
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).
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement