jogamp
›
jogl
Login
Register
Re: GLContext version...
Posted by
Sven Gothel
on
Jan 27, 2011; 1:16am
URL:
https://forum.jogamp.org/GLContext-version-tp2335528p2359038.html
On Wednesday, January 26, 2011 21:58:11 Matt [via jogamp] wrote:
>
> Hi Sven,
>
> Thanks for prompt answer.
>
> My code looks like this:
>
> GLProfile glp = GLProfile.getMaxProgrammable();
> System.err.println("GLProfile getMaxProgrammable(): "+glp);
>
> GLDrawableFactory factory =
> GLDrawableFactory.getFactory(GLProfile.get(GLProfile.GL3));
> this.context = factory.createExternalGLContext();
>
> System.err.println(context.toString());
>
There are only 2 factories, the native GLX/WGL/CGL one
and the EGL one. This is not the point.
The point is to create the GLAutoDrawable with the proper GLCapabilities/GLProfile instance.
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/awt/TestAWT01GLn.java;h=83561eb9751f66cbb45d411caee0b1257218a4aa;hb=HEAD#l126
(line 126)
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/awt/TestAWT01GLn.java;h=83561eb9751f66cbb45d411caee0b1257218a4aa;hb=HEAD#l85
> And the two prints look like this:
showing you have GL3 supported, good.
~Sven
Free forum by Nabble
Edit this page