Package com.jogamp.opengl.util
Class Gamma
- java.lang.Object
-
- com.jogamp.opengl.util.Gamma
-
public class Gamma extends Object
Provides convenient wrapper forGLDrawableFactory
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.
-
-
Method Summary
-
-
-
Method Detail
-
setDisplayGamma
public static boolean setDisplayGamma(GLDrawable drawable, float gamma, float brightness, float contrast) throws IllegalArgumentException
Convenient wrapper forGLDrawableFactory.setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float)
.Use
setDisplayGamma(GLAutoDrawable, float, float, float)
in case of using an {#link GLAutoDrawable}.- Throws:
IllegalArgumentException
-
setDisplayGamma
public static boolean setDisplayGamma(GLAutoDrawable drawable, float gamma, float brightness, float contrast) throws IllegalArgumentException
Convenient wrapper forGLDrawableFactory.setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float)
lockingGLAutoDrawable.getUpstreamLock()
to ensure proper atomic operation.- Throws:
IllegalArgumentException
-
resetDisplayGamma
public static void resetDisplayGamma(GLDrawable drawable)
Convenient wrapper forGLDrawableFactory.resetDisplayGamma(com.jogamp.nativewindow.NativeSurface)
.Use
resetDisplayGamma(GLAutoDrawable)
in case of using an {#link GLAutoDrawable}.
-
resetDisplayGamma
public static void resetDisplayGamma(GLAutoDrawable drawable)
Convenient wrapper forGLDrawableFactory.resetDisplayGamma(com.jogamp.nativewindow.NativeSurface)
lockingGLAutoDrawable.getUpstreamLock()
to ensure proper atomic operation.
-
resetAllDisplayGamma
public static void resetAllDisplayGamma(GLDrawable drawable)
Convenient wrapper forGLDrawableFactory.resetAllDisplayGamma()
.
-
-