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