Swing and OpenGl

Started by oXineteX, October 14, 2005, 23:18:56

Previous topic - Next topic

oXineteX

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

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.

CaseyB

There are examples that use an AWTGLCanvas in the lwjgl sourceforge area.

rainforest

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.
.:: A journey of thousand miles starts with a single step ::.

Matzon

it's in the source distribution

Nop

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?

CaseyB

Did you call swapBuffers() at the end of the paintGL() method?

Nop

Yeah, that was one third of the problem. :-)

I found the example now. swapBuffers() and makeCurrent() were both missing.