LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: guurk on May 19, 2004, 16:32:10

Title: JSDL w/ LWJGL
Post by: guurk on May 19, 2004, 16:32:10
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?
Title: JSDL w/ LWJGL
Post by: princec on May 19, 2004, 17:24:34
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 :)