Login  Register

Re: queryProperties...

Posted by Sven Gothel on May 12, 2014; 7:16pm
URL: https://forum.jogamp.org/Java3D-1-6-crashes-JVM-tp4031293p4032319.html

On 05/12/2014 07:30 PM, runiter [via jogamp] wrote:
> I agree with Sven's comment about the generic solution that would address the
> problem for all scenarios.
>
> However, for queryProperties can't we come up with a way that does not require
> creating a JFrame? can't be query the graphics card directly to read its
> capabilities?

I am not so familiar w/ Java3D, are these caps related to GLCapabilities ?
If so, you can always query all GLCapabilities for a specific device
w/o the need to create a dummy window. This is b/c we do query them
at JOGL initialization, which didn't exist in JOGL1.

<http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLDrawableFactory.html#getAvailableCapabilities%28javax.media.nativewindow.AbstractGraphicsDevice%29>

Further more, one can also query available GLProfiles for one device:

<http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLProfile.html#getMaxProgrammableCore%28javax.media.nativewindow.AbstractGraphicsDevice,%20boolean%29>
.. etc ..

~Sven



signature.asc (894 bytes) Download Attachment