Hello,
This week I began tinkering around with OpenGL and JOGL in particular. The first thing I wanted to do was to learn a bit about creating a GUI before I got into any OpenGL specific code. Here are my questions:
-
In games like Dungeon Siege and others, they use
nifty translucent windows for inventory screens etc.
that overlap the drawing area. The first thing I tried
was to create an OPAQUE ‘inventory screen’ using a
heavyweight component ( JDialog ). The dialog
dutifully appeared, and behaved as normal, but the
animation of the GL drawing slowed quite a bit ( I
used on of the early NeHe tutorials as a guinea pig).
Thoughts on that? I forgot to mention it, but here is
the setup: An AWT Frame containing a GLCanvas
added to it’s BorderLayout.CENTER, with a JDialog
using the Frame as it’s parent. Anyway…how to use
opaque widgets without slowing animation? -
How to use translucent widgets? I don’t see any
methods to .addComponent() to the GLCanvas, so
I’m stuck.
Thanks much