JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.Gamma Class Reference

Provides convenient wrapper for GLDrawableFactory control over individual display's gamma, brightness and contrast values via the hardware gamma ramp tables. More...

Collaboration diagram for com.jogamp.opengl.util.Gamma:

Static Public Member Functions

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). More...
 
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. More...
 
static void resetDisplayGamma (final GLDrawable drawable)
 Convenient wrapper for GLDrawableFactory#resetDisplayGamma(com.jogamp.nativewindow.NativeSurface). More...
 
static void resetDisplayGamma (final GLAutoDrawable drawable)
 Convenient wrapper for GLDrawableFactory#resetDisplayGamma(com.jogamp.nativewindow.NativeSurface) locking GLAutoDrawable#getUpstreamLock() to ensure proper atomic operation. More...
 
static void resetAllDisplayGamma (final GLDrawable drawable)
 Convenient wrapper for GLDrawableFactory#resetAllDisplayGamma(). More...
 

Detailed Description

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.

Definition at line 60 of file Gamma.java.

Member Function Documentation

◆ resetAllDisplayGamma()

static void com.jogamp.opengl.util.Gamma.resetAllDisplayGamma ( final GLDrawable  drawable)
static

Convenient wrapper for GLDrawableFactory#resetAllDisplayGamma().

Definition at line 114 of file Gamma.java.

Here is the call graph for this function:

◆ resetDisplayGamma() [1/2]

static void com.jogamp.opengl.util.Gamma.resetDisplayGamma ( final GLAutoDrawable  drawable)
static

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

Definition at line 101 of file Gamma.java.

Here is the call graph for this function:

◆ resetDisplayGamma() [2/2]

static void com.jogamp.opengl.util.Gamma.resetDisplayGamma ( final GLDrawable  drawable)
static

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

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

Definition at line 93 of file Gamma.java.

Here is the call graph for this function:

◆ setDisplayGamma() [1/2]

static boolean com.jogamp.opengl.util.Gamma.setDisplayGamma ( final GLAutoDrawable  drawable,
final float  gamma,
final float  brightness,
final float  contrast 
) throws IllegalArgumentException
static

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

Definition at line 77 of file Gamma.java.

Here is the call graph for this function:

◆ setDisplayGamma() [2/2]

static boolean com.jogamp.opengl.util.Gamma.setDisplayGamma ( final GLDrawable  drawable,
final float  gamma,
final float  brightness,
final float  contrast 
) throws IllegalArgumentException
static

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}.

Definition at line 69 of file Gamma.java.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: