Re: JOGL 1 -> JOGL 2
Posted by
Michael Bien on
Sep 22, 2010; 11:19am
URL: https://forum.jogamp.org/Support-of-windows-amd64-system-is-broken-tp1486942p1560504.html
Julien is right, there are only minor differences between both APIs.
you could take a quick look at the tutorials e.g:
https://sites.google.com/site/justinscsstuff/jogl-tutorials
to get an explanation how the new initialization works.
I also wrote a blog entry about profiles some time ago:
http://michael-bien.com/mbien/entry/jogl_2_opengl_profiles_explained
for further questions just ask (we also have a jabber chatroom)
regards,
michael
On 09/22/2010 11:46 AM, gouessej [via jogamp] wrote:
If your source code is very big, maybe use Jackpot 3.0. Otherwise,
doing it by yourself is not very difficult. The main differences
are below:
// get the profile
GLProfile profile = GLProfile.getDefault();
// this allows us to set particular properties for the GLCanvas
GLCapabilities glCapabilities = new GLCapabilities(profile);
instead of
GLCapabilities glCapabilities = new GLCapabilities();
final GL2 gl = GLContext.getCurrentGL().getGL2();
instead of
final GL gl = GLContext.getCurrentGL();
Except that, the package names have changed, some packages have
moved from com.sun to com.jogamp, it is quite trivial. Instead of
using directly GL, lots of thing are in GL2, GL2GL3 or in another
interfaces of this kind. Sorry for my approximative explanation.
--
- - - -
http://michael-bien.com