Hello,
im realy new in OpenGL Development for Java (and Graphic Devel. self). I ask me, if it is possible to create a OpenGL Plane in a Swing Enviroment.
Or if there are Classes for "Buttons, Select Boxes..." in lwjgl.
Maybe a class to build a "HUD".
oXineteX
ok for the swing... i don't think of it - i should only use a second Frame..
:lol:
Ok but the HUD Question are already there.
There are examples that use an AWTGLCanvas in the lwjgl sourceforge area.
Dear All
I wonder if u can please tell me exactly which example is describing AWTGLCanvas or HUD on sourceforge or in LWJGL home demo pages?
I would be glad to know. :D
rainforest.
it's in the source distribution
I am also looking for an example on how to use AWTGLCanvas.
I have searched through the Source distribution, there is no example there, only the sparsely documented class itself.
My problem is: The overridden paintGL function is called, the gl Functions are executed, but nothing appears in the canvas. What do I have to do to make the AWTGLCanvas acutally draw something?
Did you call swapBuffers() at the end of the paintGL() method?
Yeah, that was one third of the problem. :-)
I found the example now. swapBuffers() and makeCurrent() were both missing.