Where to find the latest jogl resources?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Where to find the latest jogl resources?

innategamer
There are a lot of links to various jogl related resources, is there a link that automatically updates so I don't have to get anything old? I want the latest javadoc, but what I found was this: http://download.java.net/media/jogl/jogl-2.x-docs/ , which doesn't even mention OpenGL 4. I want the latest jar files and libraries as well, I think I got them, but I'm not sure.
Reply | Threaded
Open this post in threaded view
|

Re: Where to find the latest jogl resources?

Pixelapp
Link that automatically updates:

     http://jogamp.org/deployment/jogamp-current/

Link to all current JOGL2 jars:

     http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z       
Reply | Threaded
Open this post in threaded view
|

Re: Where to find the latest jogl resources?

innategamer
I think that is the link I used, but when I try this:

GLProfile glp = GLProfile.get(GLProfile.GL4);

I get an exception:


Exception in thread "main" javax.media.opengl.GLException: Profile GL4 is not available on null, but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
        at javax.media.opengl.GLProfile.get(GLProfile.java:818)
        at javax.media.opengl.GLProfile.get(GLProfile.java:831)
        at gl.gl4.create(gl4.java:11)
        at gl.gl4.<init>(gl4.java:38)
        at gl.gl4.main(gl4.java:34)

I'm trying to use OpenGL 4, but I get an exception when I try to get the profile.
Reply | Threaded
Open this post in threaded view
|

Re: Where to find the latest jogl resources?

Sven Gothel
Administrator
On 11/01/2012 05:38 PM, innategamer [via jogamp] wrote:

> I think that is the link I used, but when I try this:
>
> GLProfile glp = GLProfile.get(GLProfile.GL4);
>
> I get an exception:
>
>
> Exception in thread "main" javax.media.opengl.GLException: Profile GL4 is not
> available on null, but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw],
> GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
This means the highest avail GL profile your GL driver supports is GL2,
not even GL3.

~Sven



signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Where to find the latest jogl resources?

Pixelapp
In reply to this post by innategamer
This is how I get OpenGL 2, try to modify it to your needs. Then write back to let me know how you did.

glp = GLProfile.getDefault();
GLCapabilities caps = new GLCapabilities(glp);
GLWindow miCanvas = GLWindow.create(caps);
}

public void display(GLAutoDrawable drawable)
{
        GL2 gl = drawable.getGL().getGL2(); // Initialize the variable GL
}
Reply | Threaded
Open this post in threaded view
|

Re: Where to find the latest jogl resources?

gouessej
Administrator
In reply to this post by innategamer
You can use PixelApp's suggestion with the method isGL4() to check whether you can really get such an instance.
Julien Gouesse | Personal blog | Website