Login  Register

Re: Looking for example using SWT GLCanvas

Posted by gouessej on Jul 19, 2012; 11:26pm
URL: https://forum.jogamp.org/Looking-for-example-using-SWT-GLCanvas-tp4025603p4025605.html

Hi

I avoid using #1 because it would cause so much troubles especially under Linux. I used #2 at work (in an Eclipse RCP application too) but with some tricks not mentioned in Wade's tutorial (to avoid crashes when using the debug pipeline). My colleague uses #3 successfully, NEWT is a bit faster and more reliable that AWT. I don't understand why you get such an exception, it is very strange. In my humble opinion, it does not come from your code but something might be wrong in your environment. org.eclipse.swt.opengl.GLCanvas extends org.eclipse.swt.widgets.Canvas too, I don't know why it works but not com.jogamp.opengl.swt.GLCanvas.
Julien Gouesse | Personal blog | Website