SWT/RCP and OpenGL
April 23rd, 2007Using OpenGL with SWT is really easy. I made an experimental fullscreen viewer for Sharemedia w/ LWJGL which shows a rotating picture.
Packaging LWJGL as an RCP plugin was a little more tricky, as several native libraries must be included for each platform. To do this, you have to add an OSGI header to the plugin :
Bundle-NativeCode:
jinput-dx8.dll;osname=win32;processor=x86;OpenAL32.dll;osname=win32;processor=x86
Now I just have to learn how to create reflection and nice motion effects with OpenGL ![]()
Some good resources :
http://www.eclipse.org/swt/opengl/
Snippet 195
