Login  Register

Re: porting JOGL 1 code into JOGL 2.0

Posted by gouessej on Feb 03, 2012; 2:18pm
URL: https://forum.jogamp.org/porting-JOGL-1-code-into-JOGL-2-0-tp3712366p3713170.html

Hi

Please use a more recent build, at least the RC5.

JOGL 1.1.1a supported OpenGL version 1.1 to 2.1 and JOGL 2.0 supports OpenGL 1.1 to 4.x.

Porting a source code from JOGL 1 to JOGL 2 is quite straightforward, you have to replace the use of GL by the use of its child classes, GL2 for example, this is the same for constants. BufferUtils has been renamed Buffers. Some classes have been moved into subpackages. I ported 2 engines and some APIs, it's a boring task but it is not very difficult except to make threading work in some particular cases.

You can look at the example I posted on Wikipedia and the demos on the repository might be interesting for you too. Best regards.
Julien Gouesse | Personal blog | Website