Bug 1035 - Allow Gamma [Brightness, Contrast] settings to be performed on display/screen of a NativeSurface
Summary: Allow Gamma [Brightness, Contrast] settings to be performed on display/screen...
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2014-07-27 23:21 CEST by Sven Gothel
Modified: 2014-07-27 23:32 CEST (History)
2 users (show)

See Also:
Type: ---
SCM Refs:
15b9e36e80d6f62f7dfb5c45d00cd04de2007ee5
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2014-07-27 23:21:41 CEST
Currently GLDrawableFactoryImpl's gamma settings are performed 
only on the main screen.

Allow passing a NativeSurface, so it's display/screen 
gamma values will be changed.

Further, promote low-level gamma settings to GLDrawableFactory
for direct usage.

Change com.jogamp.opengl.util.Gamma to use a GLDrawable
instead of a GL object to clarify that we use the drawable.

Also add a GLAutoDrawable variant, allowing proper locking 
of its 'upstream-lock' to guarantee atomicity.
Comment 1 Sven Gothel 2014-07-27 23:23:46 CEST
Fixed as described in commit 15b9e36e80d6f62f7dfb5c45d00cd04de2007ee5