Hi,
I am developing an application involving 3D graphics using JOGL. I did this with SWING/AWT but now I have to develop it in Eclipse RCP. I would like to continue to use SWING/AWT programming model when I migrate app to Eclipse.
I tried using SWT_AWT bridge but I got error :
Quote:
|
Error creating view Reason: javax/media/opengl/GLEventListeneer
|
And code looks like this:
Code:
...in createPartContol in ViewPart
public void createPartControl(Composite parent) {
Composite swtAwtComponent = new Composite( parent, SWT.EMBEDDED);
Frame frame = SWT_AWT.new_Frame( swtAwtComponent );
GLCanvas glCanvas = new GLCanvas();
GLEventListener listener = new MyGLEventListener( glCanvas );
glCanvas.addGLEventListener(listener );
frame.add( glCanvas );
}
I googled for solution and found some articles for using OpenGL with Eclipse but as I mentioned before I would like to use programming model I used unil now, and all this articles consider different one.
So if someone can point me to some articles which may have solution or
can give same advice it would be very helpful to me.
Thanks
P.S. Sorry cause my english isn't very fluent.