JSDL w/ LWJGL

Started by guurk, May 19, 2004, 16:32:10

Previous topic - Next topic

guurk

Just wondering about using JSDL with LWJGL like I do in C++ with SDL and OGL.

The GLContext when set or gotten from a window is passed as an Object. Is there a reason for this? Are you actually just passing the 'window' handle around?
How hard would it be to change the code to allow for an SDLSurface along with the SWTCanvas and the standard Window context from lwjgl?

princec

The reason we're passing in an Object is so it works with any other API! Basically, the Object merely identifies the context by virtue of ==, so if you pass in an SWTGLContext, JOGL GL Context, SDL context, or whatever - it'll Just Work.

Cas :)