Top Description Constructors Methods
com.jogamp.opengl.util

public Class Gamma

extends Object
Class Inheritance
Imports
com.jogamp.opengl.GLAutoDrawable, .GLDrawable, .GLDrawableFactory, com.jogamp.common.util.locks.RecursiveLock

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.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
public static void
public static boolean
setDisplayGamma(final GLDrawable drawable, final float gamma, final float brightness, final float contrast)

Convenient wrapper for GLDrawableFactory#setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float).

public static boolean
setDisplayGamma(final GLAutoDrawable drawable, final float gamma, final float brightness, final float contrast)

Convenient wrapper for GLDrawableFactory#setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float) locking GLAutoDrawable#getUpstreamLock() to ensure proper atomic operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Gammaback to summary
private Gamma()

Method Detail

resetAllDisplayGammaback to summary
public static void resetAllDisplayGamma(final GLDrawable drawable)

Convenient wrapper for GLDrawableFactory#resetAllDisplayGamma().

resetDisplayGammaback to summary
public static void resetDisplayGamma(final GLDrawable drawable)

Convenient wrapper for GLDrawableFactory#resetDisplayGamma(com.jogamp.nativewindow.NativeSurface).

Use resetDisplayGamma(GLAutoDrawable) in case of using an {#link GLAutoDrawable}.

resetDisplayGammaback to summary
public static void resetDisplayGamma(final GLAutoDrawable drawable)

Convenient wrapper for GLDrawableFactory#resetDisplayGamma(com.jogamp.nativewindow.NativeSurface) locking GLAutoDrawable#getUpstreamLock() to ensure proper atomic operation.

setDisplayGammaback to summary
public static boolean setDisplayGamma(final GLDrawable drawable, final float gamma, final float brightness, final float contrast) throws IllegalArgumentException

Convenient wrapper for GLDrawableFactory#setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float).

Use setDisplayGamma(GLAutoDrawable, float, float, float) in case of using an {#link GLAutoDrawable}.

setDisplayGammaback to summary
public static boolean setDisplayGamma(final GLAutoDrawable drawable, final float gamma, final float brightness, final float contrast) throws IllegalArgumentException

Convenient wrapper for GLDrawableFactory#setDisplayGamma(com.jogamp.nativewindow.NativeSurface, float, float, float) locking GLAutoDrawable#getUpstreamLock() to ensure proper atomic operation.