Posted by
Sven Gothel on
Feb 03, 2012; 2:46pm
URL: https://forum.jogamp.org/porting-JOGL-1-code-into-JOGL-2-0-tp3712366p3713259.html
On 02/03/2012 03:31 PM, Demoscene Passivist [via jogamp] wrote:
>
>
>> Is there some guide that shows how to do this systematically?
>
Well there is something called, jackpotc [jogl/tools/jackpotc] within
the JOGL repos. It supposed to translate a JOGL1 project to JOGL2.
However, the setup is currently unmaintained - but you may try.
If you choose to do so .. pls give us feedback and send us your changes
to the setup .. if any.
> 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
in this case, just use GL2 .. ie "GL gl2 = gl.getGL2();"
for example.
>
>> 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
http://jogamp.org/wiki/index.php/Jogl_Tutorial the wiki and maybe
>
https://github.com/demoscenepassivist/SocialCoding/tree/master/code_demos_jogamp> my JOGL2 code repository . I also recommend taking a look at
>
https://github.com/sgothel/jogl-demos
Location of JOGL's unit tests, within JOGL's git repo:
<
http://jogamp.org/git/?p=jogl.git;a=tree;f=src/test/com/jogamp/opengl/test/junit>
> 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
>