I am porting my application from Magician to GL4Java, and there are some
differences in the two APIs that I am trying to figure out.
Specifically, I was sharing display lists and textures between two
displays (ie, two GLDrawables) in my app. In the old API, I was able to
create my second "GLDrawable" by passing in my first "GLDrawable" as an
argument during creation. This linked the two OpenGL state machines and
allowed the desired sharing.
Does anyone know the proper way to do this in GL4Java? In the
GLDrawableFactory class, I saw that createGLAnimCanvas() was overloaded
to take the arguments 'glName' and 'gluName', but I don't think that is
what I am looking for, is it? We tried getting the Context from the
first GLDrawable and setting it in the second GLDrawable, but that
caused nothing to be rendered at all. Does anyone have some advice?
-mark
|