Re: getting errors regarding "natives" in Eclipse

Posted by Sven Gothel on
URL: https://forum.jogamp.org/getting-errors-regarding-natives-in-Eclipse-tp4007617p4011962.html

On 05/23/2012 04:30 PM, egc2224 [via jogamp] wrote:
> I am still learning the differences between the older JOGL and the newer JOGL
> but I found this page that explains how the older version supports the older
> version of OpenGL and the newer version supports the newer version of OpenGL
> that uses more of the shader type structuring.
> http://jogamp.org/jogl/doc/Overview-OpenGL-Evolution-And-JOGL.html
>

The new JOGL supports all versions of
OpenGL (1.1-2.1, 3.0-4.2 and ES1 and ES2),
where the old JOGL only supports OpenGL up to version 2.

You simply have to pick the right OpenGL profile
and you will find the OpenGL 2 enumerates (names) in GL2.

Porting to JOGL2 should be almost as easy as just replacing:
  drawable.getGL() -> drawable.getGL().getGL2()
and
  new GLCapabilities() -> new GLCapabilities(null)

~Sven