summaryrefslogtreecommitdiffstats
path: root/doc/userguide/index.html
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-06-30 19:30:24 +0000
committerKenneth Russel <[email protected]>2005-06-30 19:30:24 +0000
commitbee7e4acd087a2de8369c47149c9b2c35e9f3a68 (patch)
tree3f715c2cdf462364cfaac4c9e3223fd7526463b1 /doc/userguide/index.html
parent97454dd0cedb5a99a5f9d26c1ef130e09d790fb8 (diff)
Fixed Issue 168: Add support for transparency in GLJPanel
Obey setOpaque() when selecting buffered image type. User must still request alpha bits in the GLCapabilities. Not supported on all back-end renderers; for example, Microsoft GDI renderer does not implement alpha bits when rendering to DIB sections. Added examples of use in JGears and JRefract demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@314 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'doc/userguide/index.html')
-rw-r--r--doc/userguide/index.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/userguide/index.html b/doc/userguide/index.html
index 06d047f3f..58b8b3e29 100644
--- a/doc/userguide/index.html
+++ b/doc/userguide/index.html
@@ -159,6 +159,18 @@ recommendation when it is available, and otherwise attempts to use a
platform-independent selection algorithm.
</P>
+<P>
+
+The GLJPanel can be made non-opaque according to Swing's rendering
+model, so it can act as an overlay to other Swing or Java2D drawing.
+In order to enable this, set up your GLCapabilities object with a
+non-zero alpha depth (a common value is 8 bits) and call
+setOpaque(false) on the GLJPanel once it has been created. Java2D
+rendering underneath it will then show through areas where OpenGL has
+produced an alpha value less than 1.0. See the JGears and JRefract
+demos for examples of how to use this functionality.
+
+</P>
<H2> Writing a GLEventListener </H2>