diff options
author | Julien Gouesse <[email protected]> | 2015-07-03 00:06:59 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2015-07-03 00:06:59 +0200 |
commit | f330d9d2c036299675b2abe97a32d2fd2896a955 (patch) | |
tree | 0dfc357b628343cf0e41be3a8c97d39e6abba8c9 /ardor3d-jogl/src/main/java | |
parent | bc1b8bafd0c6a49ac58aef6be0e3fbf36a9ecc32 (diff) |
Adds a comment into JoglSwingCanvas about the possible conflicts between the shaders used by JOGL to flip the pixels and those of Ardor3D
Diffstat (limited to 'ardor3d-jogl/src/main/java')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglSwingCanvas.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglSwingCanvas.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglSwingCanvas.java index 68a8375..45c2974 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglSwingCanvas.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglSwingCanvas.java @@ -13,21 +13,23 @@ package com.ardor3d.framework.jogl; import java.lang.reflect.InvocationTargetException; import java.util.concurrent.CountDownLatch; -import com.jogamp.opengl.GLAutoDrawable; -import com.jogamp.opengl.GLRunnable; -import com.jogamp.opengl.awt.GLJPanel; import javax.swing.SwingUtilities; import com.ardor3d.annotation.MainThread; import com.ardor3d.framework.Canvas; import com.ardor3d.framework.DisplaySettings; +import com.jogamp.opengl.GLAutoDrawable; +import com.jogamp.opengl.GLRunnable; +import com.jogamp.opengl.awt.GLJPanel; /** * Ardor3D JOGL Swing lightweight canvas, Swing component for the OpenGL rendering of Ardor3D with JOGL that supports * the AWT input system directly and its abstraction in Ardor3D (com.ardor3d.input.awt). As this canvas is generally * slower and heavier (in term of memory footprint) than JoglAwtCanvas, use it if and only if you have some problems - * when mixing heavyweight and lightweight components - * + * when mixing heavyweight and lightweight components. + * + * N.B: This canvas uses GLSL internally when it is available and supported, setting the property jogl.gljpanel.noglsl + * to true is recommended to avoid any conflicts with the effects based on GLSL including the bloom effect. */ public class JoglSwingCanvas extends GLJPanel implements Canvas { |