Creating GUI in an OpenGL program

Started by someone2, October 21, 2006, 19:20:03

Previous topic - Next topic

someone2

Hi,
I am a total Java noob. I was wondering how to create a GUI in my lwjgl program?

Can I add GUI in the same OpenGL window of my game? or do I have to put them in another window?

Any examples with source code would be greatly appreciated.


Thanks you very very much

wolf_m

QuoteI am a total Java noob.
I'd suggest learning Java first before trying to handle Java and OpenGL at the same time.
QuoteCan I add GUI in the same OpenGL window of my game? or do I have to put them in another window?
You can do both.
What kind of GUI are you thinking about? Something like clickable buttons and textfields? Sliders, icons and drag 'n drop?
The abbreviation GUI is pretty flexible. It stands for graphical user interface, that could be anything with graphics that represents an interface to manipulate program data and can be operated with the input methods the user has.

Tell us what you want to achieve. That makes it easier to help you.

someone2

Thanks :)
I am trying to learn Java as I go. I am a quite good C++ programmer, so, I usually get stuck at Java specific features.

I am basically trying to convert an OpenGL program (C++) into a Java Applet.

The program has some GUI elements (sliders, buttons, edit boxes... etc). just the usual standard windows stuff.

Which option do you think is better? To put them in the same window as the applet? or to open a new one?

Thank you very much