Is there an equivalent of java.awt.DisplayMode.getBitDepth() in NEWT?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there an equivalent of java.awt.DisplayMode.getBitDepth() in NEWT?

gouessej
Administrator
Hi

Is there an equivalent of java.awt.DisplayMode.getBitDepth() in NEWT? I haven't found it in ScreenMode but it should be somewhere as it is possible to pass this info in ScreenModeUtil.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Is there an equivalent of java.awt.DisplayMode.getBitDepth() in NEWT?

Sven Gothel
Administrator
On 11/03/2012 12:27 AM, gouessej [via jogamp] wrote:
> Hi
>
> Is there an equivalent of java.awt.DisplayMode.getBitDepth() in NEWT? I
> haven't found it in ScreenMode but it should be somewhere as it is possible to
> pass this info in ScreenModeUtil.

Yup.

http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/nativewindow/util/SurfaceSize.html#getBitsPerPixel%28%29

.. it may not be impl. on all platforms, so we use the usual default of 32 bits.

~Sven



signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Is there an equivalent of java.awt.DisplayMode.getBitDepth() in NEWT?

gouessej
Administrator
Thank you.
Julien Gouesse | Personal blog | Website