> 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?