Re: Could someone help me port these two files from FOBS to JOGL2?
Posted by
gouessej on
Mar 23, 2012; 9:52am
URL: https://forum.jogamp.org/Could-someone-help-me-port-these-two-files-from-FOBS-to-JOGL2-tp3850707p3851080.html
Hi
This source code is very old, it uses an old beta of JOGL, older than JOGL 1.1.1. Some classes change of location twice since this version.
The Java documentation of JOGL is
here.
Replace net.java.games.jogl by javax.media.opengl or javax.media.opengl.awt.
Replace canvas = GLDrawableFactory.getFactory().createGLCanvas(capbilities); by canvas = new GLCanvas(capbilities);
Replace net.java.games.cg by com.jogamp.opengl.cg. Don't forget to use jogl.cg.jar too, not only jogl.all.jar.
Rather create GLU this way: GLU glu = new GLugl2().
Replace gl by gl.getGL2() where it is necessary.
I assume you're able to port this code as I've just given you the link to the documentation. Good luck.