public class Gamma extends Object
GLDrawableFactory
control over
individual display's gamma, brightness and contrast values
via the hardware gamma ramp tables.
Not supported on all platforms or graphics hardware.
Thanks to the LWJGL project for illustrating how to access gamma control on the various platforms.
public static boolean setDisplayGamma(GLDrawable drawable, float gamma, float brightness, float contrast) throws IllegalArgumentException
GLDrawableFactory.setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float)
.
Use setDisplayGamma(GLAutoDrawable, float, float, float)
in case of using an {#link GLAutoDrawable}.
IllegalArgumentException
public static boolean setDisplayGamma(GLAutoDrawable drawable, float gamma, float brightness, float contrast) throws IllegalArgumentException
GLDrawableFactory.setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float)
locking GLAutoDrawable.getUpstreamLock()
to ensure proper atomic operation.IllegalArgumentException
public static void resetDisplayGamma(GLDrawable drawable)
GLDrawableFactory.resetDisplayGamma(com.jogamp.nativewindow.NativeSurface)
.
Use resetDisplayGamma(GLAutoDrawable)
in case of using an {#link GLAutoDrawable}.
public static void resetDisplayGamma(GLAutoDrawable drawable)
GLDrawableFactory.resetDisplayGamma(com.jogamp.nativewindow.NativeSurface)
locking GLAutoDrawable.getUpstreamLock()
to ensure proper atomic operation.public static void resetAllDisplayGamma(GLDrawable drawable)
GLDrawableFactory.resetAllDisplayGamma()
.Copyright 2010 JogAmp Community.