Basically I am learning openGL using JOGL, as a project to help me learn I am going to make a simple game, but before that I want to draw a square and move the camera around with the arrow keys.
Because I am not very well accomplished with openGL I have made a little menu which uses awt.Graphics and Buffered images to draw it onto a GLCanvas. Then when I select a button it renders the game (currently just the square) using javax.media.opengl.GL.
This set up works perfectly, with switching between the two methods of rendering to the GLCanvas. One OR the other can draw to the canvas allowing me to utilise both my current knowledge of Java Graphics to create a complex 2D menu, and switch to JOGL GL to learn 3D Graphics.
BUT, it is one OR the other that completely hogs the screen,
So the question is how can I create an image on screen which is a mixture of both? I.e how can I have my 3D cube rotating happily on screen and have a menu bar at the top which is drawn by Java Graphics? How do I get them to draw to the same Object/thing so I am just pasting the 2D images of the menu over the 3D
If this is not possible I will simply use keyboard commands until I am confident enough with GL to create the menu with it directly.
If you wan't to see any of my code I can edit this post, but I don't see how it could be helpful (but you may, so please ask)
Many Thanks