I'm working with ogre4j, a project that uses JNI for access to OGRE3D
functions. There are multiple examples of this project using SWT Canvas
for linking to 3Direct, but I couldn't find any example of SWT with GLX.
The function of OGRE3d that creates the window specifies that there have
to be given some parameters in this form for GLX.
For example, for 3Direct is as simple as:
// create RenderWindow with SWT handle
INameValuePairList params = new NameValuePairList();
StringPointer windowHandlePointer = new
StringPointer(Integer.toString(canvas.handle));
params.insert("externalWindowHandle", windowHandlePointer);
renderWindow = root.createRenderWindow("",
canvas.getBounds().width, canvas.getBounds().height, false, params);
params.delete();
windowHandlePointer.delete();
So I can find the third parameter, windowHandle, accessing to handle field
of the Canvas object, but where can I find the other parameters?