Community
Participate
Working Groups
Hello. I'm currently trying to use SWT's OpenGL binding with LWJGL. The library versions are SWT 4.2.1 and LWJGL 2.8.4. I've managed to run Snippet 195 with no problems. I'm now trying to enable 4x geometry anti aliasing. However, I've found on the net some old discussions stating that this is not possible. I'm wondering why. The most relevant discussion over LWJGL's forums dates back to 2006 and states that: Quote: Unfortunately, OpenGL in SWT does not yet support multisampling. Although the org.eclipse.swt.opengl.GLData class contains samples and sampleBuffers fields, they are not currently used in the org.eclipse.swt.opengl.GLCanvas class. The following code is from the GLCanvas: Code: //FIXME - use wglChoosePixelFormatARB // if (data.sampleBuffers > 0) { // wglAttrib [pos++] = WGL.WGL_SAMPLE_BUFFERS_ARB; // wglAttrib [pos++] = data.sampleBuffers; // } // if (data.samples > 0) { // wglAttrib [pos++] = WGL.WGL_SAMPLES_ARB; // wglAttrib [pos++] = data.samples; // } lwjgl.org/forum/index.php/topic,1579.0.html Its now 2012 and I've verified that this code is still commented on SWT 4.2.1 for Win32 X64. As a side note, LWJGL using Swing does indeed respond when anti aliased rendering is requested. I appreciate any feedback I could get on this. Please let me know if there's anything else I could do or specify in the meantime. Thanks for your time and help! JZM
I just found out that this is a duplicate of bug 136514. https://bugs.eclipse.org/bugs/show_bug.cgi?id=136514 From what I can read, the main issue is finding a better way to initialize GLCanvas and OpenGL's extension mechanism, which the JOGAMP guys have already done if I 'm not mistaken. However, their approach is still specific to JOGL2. If/when the LWJGL people might be interested in this, I think a better way to solve the issue would be by changing SWT's GLCanvas from a class to a well defined interface that JOGL2/LWJGL/any other OpenGL framework can adhere to. I'll update bug 136514 to see if someone could define such interface. Thanks! *** This bug has been marked as a duplicate of bug 136514 ***