From bee7e4acd087a2de8369c47149c9b2c35e9f3a68 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 30 Jun 2005 19:30:24 +0000 Subject: 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 --- doc/userguide/index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/userguide') 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 @@ -158,6 +158,18 @@ array. The DefaultGLCapabilitiesChooser uses the window system's recommendation when it is available, and otherwise attempts to use a platform-independent selection algorithm. +

+

+ +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. +

Writing a GLEventListener

-- cgit v1.2.3