Re: Fast identification of available opengl version
Posted by
Sven Gothel on
Feb 07, 2012; 3:25pm
URL: https://forum.jogamp.org/Fast-identification-of-available-opengl-version-tp3722823p3722833.html
On 02/07/2012 04:21 PM, karelknoes [via jogamp] wrote:
>
>
> Hi, I'm looking for a fast check to determine which maximum openGL version is
> available before anything else happens.
>
> The current solution I'm using is to create a PBuffer and get the available
> opengl from it. It takes about a second to complete on a fast machine, which
> seems rather steep to determine a hardware specification.
>
> Looking forward to your thoughts on such a check.
>
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java;hb=HEAD#l103check the static profile function in GLProfile .. I guess you will find something useful there.
~Sven