From bbdd6f95687da343bf7a6550c3bc9bb4444116e5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 3 Sep 2011 03:13:45 +0200 Subject: Complete translucency support (core w/ X11 (only) - tested w/ NEWT) DefaultGLCapabilitiesChooser: - Add penalty for opaque mismatch: dbl-buf > opaq > stencil GLGraphicsConfigurationFactory: - Case no-chooser && has-recommended-idx: - Only use recommended index if caps is opaque, otherwise use default chooser to validate translucency NativeWindow Capabilities: - transparent default values -> 0 Added NEWT Test: TestTranslucencyNEWT Added command line translucency/undecorated options for TestGearsES2NEWT --- .../classes/javax/media/nativewindow/Capabilities.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nativewindow/classes') diff --git a/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java b/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java index 79d69c703..b162392da 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java +++ b/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java @@ -52,10 +52,10 @@ public class Capabilities implements CapabilitiesImmutable, Cloneable, Comparabl // Support for transparent windows containing OpenGL content private boolean backgroundOpaque = true; - private int transparentValueRed = -1; - private int transparentValueGreen = -1; - private int transparentValueBlue = -1; - private int transparentValueAlpha = -1; + private int transparentValueRed = 0; + private int transparentValueGreen = 0; + private int transparentValueBlue = 0; + private int transparentValueAlpha = 0; // Switch for on- or offscreen private boolean onscreen = true; -- cgit v1.2.3