Re: porting JOGL 1 code into JOGL 2.0
Posted by
Demoscene Passivist on
Feb 03, 2012; 2:31pm
URL: https://forum.jogamp.org/porting-JOGL-1-code-into-JOGL-2-0-tp3712366p3713212.html
>Is there some guide that shows how to do this systematically?
As far as I know not :( But no panic its quite easy. Just a little refactoring here and there. 95% is just rename/move refactoring. The other 5% are some changes to the method signatures and ofcourse the OpenGL profile stuff introduced with JOGL2.
>From what I understand JOGL 1.0 is associated with OpenGL 1.0 and JOGL 2.0 is OpenGL 4.0?
For a beginner the differences doesn't really matter. If u are not using multiple platforms or advanced OpenGL stuff like geometry shaders, tesselation and atomic counters u can simply syntactically refactor ur code, add some profile code and u are good to go

>Would a book on each help understand the differences?
I wouldn't borther with any books. Better directly dive in

But u may have a look at
the wiki and maybe
my JOGL2 code repository. I also recommend taking a look at
the unit tests for JOGL as they more or less explain every aspect of JOGL2 with code

Also feel free to post any further questions in this forum