> Right now it seems calling (.getContext (new GLCanvas)) returns nil Right. The context doesn't get set at construction, but will be set by the time the canvas gets passed to any of the GLEventListener methods.
The Javadoc mentions that the underlying context may need to get created and destroyed multiple times as components get added and removed, but it seems to imply that the GLContext object itself provides a stable handle to whatever the current underlying context is. So you might be able to share them. Another possibility though is that you don't *need* to share them... and looking at what's in the one I get back, I notice that it has AWT window handles in its members, so maybe that's not intended after all. > I'm curious in general how an OpenGL program should properly be > written when dealing with multiple windows. So am I, now :) J -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
