40package com.jogamp.opengl.util;
42import com.jogamp.opengl.GLAutoDrawable;
43import com.jogamp.opengl.GLDrawable;
44import com.jogamp.opengl.GLDrawableFactory;
46import com.jogamp.common.util.locks.RecursiveLock;
69 public static boolean setDisplayGamma(
final GLDrawable drawable,
final float gamma,
final float brightness,
final float contrast)
throws IllegalArgumentException {
77 public static boolean setDisplayGamma(
final GLAutoDrawable drawable,
final float gamma,
final float brightness,
final float contrast)
throws IllegalArgumentException {
78 final RecursiveLock lock = drawable.getUpstreamLock();
abstract void resetDisplayGamma(final NativeSurface surface)
Resets the gamma, brightness and contrast values of the display associated with the given surface to ...
abstract void resetAllDisplayGamma()
Resets the gamma, brightness and contrast values of all modified displays to their original values be...
static GLDrawableFactory getFactory(final GLProfile glProfile)
Returns the sole GLDrawableFactory instance.
abstract boolean setDisplayGamma(final NativeSurface surface, final float gamma, final float brightness, final float contrast)
Sets the gamma, brightness, and contrast of the display associated with the given surface.
Provides convenient wrapper for GLDrawableFactory control over individual display's gamma,...
static boolean setDisplayGamma(final GLAutoDrawable drawable, final float gamma, final float brightness, final float contrast)
Convenient wrapper for GLDrawableFactory#setDisplayGamma(com.jogamp.nativewindow.NativeSurface,...
static boolean setDisplayGamma(final GLDrawable drawable, final float gamma, final float brightness, final float contrast)
Convenient wrapper for GLDrawableFactory#setDisplayGamma(com.jogamp.nativewindow.NativeSurface,...
static void resetAllDisplayGamma(final GLDrawable drawable)
Convenient wrapper for GLDrawableFactory#resetAllDisplayGamma().
static void resetDisplayGamma(final GLAutoDrawable drawable)
Convenient wrapper for GLDrawableFactory#resetDisplayGamma(com.jogamp.nativewindow....
static void resetDisplayGamma(final GLDrawable drawable)
Convenient wrapper for GLDrawableFactory#resetDisplayGamma(com.jogamp.nativewindow....
A higher-level abstraction than GLDrawable which supplies an event based mechanism (GLEventListener) ...
RecursiveLock getUpstreamLock()
Returns the recursive lock object of the upstream widget to synchronize multithreaded access on top o...
An abstraction for an OpenGL rendering target.
NativeSurface getNativeSurface()
Returns the associated NativeSurface of this NativeSurfaceHolder.
GLProfile getGLProfile()
Fetches the GLProfile for this drawable.