On Monday, September 26, 2011 09:33:43 AM gouessej [via jogamp] wrote:
>
> Hi
>
> You can use the constant MAX_SAMPLES with glGetInt to get this value with
> any version of OpenGL supporting GL_ARB_texture_multisample. I disagree with
> your remark about GL2.
>
For the GL query, use Julien's above.
Here you can see how you gather all available GLCapabilities:
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java;hb=HEAD#l58Here is a test whether a list of such caps has any multisample support in it:
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/caps/MultisampleChooser01.java;hb=HEADApplied here for one NEWT window's GLDrawable
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/caps/TestMultisampleNEWT.java;hb=HEAD.. but you can check on all available caps (see above) as well.
~Sven