Login  Register

Re: GLProfile.isGL2Available() equivalent for current jogl code

Posted by Sven Gothel on Oct 23, 2014; 7:46am
URL: https://forum.jogamp.org/GLProfile-isGL2Available-equivalent-for-current-jogl-code-tp4033430p4033433.html

On 10/22/2014 09:36 PM, jurchiks [via jogamp] wrote:

> I'm updating the jogl libraries for a project that was last updated in 2011
> (https://code.google.com/p/g3d-editor/). Obviously, the APIs have changed, but
> most of the updates for this project only required me to add "gl" as a
> parameter to some methods that were called.
> The last thing that still gives me errors is this code:
>
>         System.out.println("GL2:   " + (GLProfile.isGL2Available() ? "Yes" :
> "No"));
>         System.out.println("GL3:   " + (GLProfile.isGL3Available() ? "Yes" :
> "No"));
>         System.out.println("GL3bc: " + (GLProfile.isGL3bcAvailable() ? "Yes" :
> "No"));
>         System.out.println("GL4:   " + (GLProfile.isGL4Available() ? "Yes" :
> "No"));
>         System.out.println("GL4bc: " + (GLProfile.isGL4bcAvailable() ? "Yes" :
> "No"));
>
> the GLProfile methods aren't available anymore, so I'm not sure what to use
> instead.
> I found that there is GLProfile.isAvailable(String profile), should I use that?
yes, i.e. w/ GLProfile.GL2 as an argument.

~Sven


signature.asc (828 bytes) Download Attachment