Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Confusion about OpenGL and SWT


Hi Martin,

You should use the org.eclipse.swt.opengl.GLCanvas that is included in swt, and use an external OpenGL binding to draw on it.  This approach keeps swt out of the business of maintaining a one-to-one cake for api that is evolving over time.  The experimental OpenGL plug-in was a first kick at providing OpenGL support, but is not being maintained and is stuck on OpenGL 1.1.

Snippets that demonstrate using org.eclipse.swt.opengl.GLCanvas:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=co
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet209.java?view=co

Grant

Back to the top