diff options
author | Sven Gothel <[email protected]> | 2011-09-03 03:13:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-03 03:13:45 +0200 |
commit | bbdd6f95687da343bf7a6550c3bc9bb4444116e5 (patch) | |
tree | 027da6de1a88bc143b1d2f4edb4cadcf68d8546f /src/nativewindow/classes/javax/media | |
parent | 9955e053ac28d1dc1f6722893d7989d5e2b710c3 (diff) |
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
Diffstat (limited to 'src/nativewindow/classes/javax/media')
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/Capabilities.java | 8 |
1 files changed, 4 insertions, 4 deletions
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; |