aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2004-11-05 17:49:17 +0000
committerKevin Rushforth <[email protected]>2004-11-05 17:49:17 +0000
commit7ce0d5ef623370a6122c63ea70e0ae5b022998f9 (patch)
treea8e21f2e6be6225f26902bcad0badbd9533aad6e /src/classes
parent49fe0098cf0aa3fdd764f2b564075ac55ef59280 (diff)
1. Added new boolean property, "j3d.usePbuffer", which can be used to
enable or disable the use of OpenGL Pbuffer rendering for off-screen Canvas3D objects. The default value for this property is "true". To disable Pbuffer rendering, use "java -Dj3d.usePbuffer=false ..." 2. Changed the few remaining C++-style "//" comments to "/* ... */" for maximum portability. git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@75 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/share/javax/media/j3d/MasterControl.java27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/classes/share/javax/media/j3d/MasterControl.java b/src/classes/share/javax/media/j3d/MasterControl.java
index 23e1288..798d308 100644
--- a/src/classes/share/javax/media/j3d/MasterControl.java
+++ b/src/classes/share/javax/media/j3d/MasterControl.java
@@ -90,21 +90,26 @@ class MasterControl {
/**
* by MIK OF CLASSX
- * the flag to indicate whether the background of the offscreen canvas must be transparent or not
- * false by default
+ *
+ * the flag to indicate whether the background of the offscreen
+ * canvas must be transparent or not false by default
*/
boolean transparentOffScreen = false;
-
-
+ /**
+ * Flag to indicate whether Pbuffers are used for off-screen
+ * rendering; true by default. Set by the "j3d.usePbuffer"
+ * property, When this flag is set to false, Bitmap (Windows) or
+ * Pixmap (UNIX) rendering will be used
+ */
+ boolean usePbuffer = true;
/**
- * the flag to indicate whether should renderer view frustum culling be true.
+ * Flag to indicate whether should renderer view frustum culling is done;
* true by default.
+ * Set by the -Dj3d.viewFrustumCulling property, When this flag is
+ * set to false, the renderer view frustum culling is turned off.
*/
- // Set by the -Dj3d.viewFrustumCulling property, When this flag is
- // set to false, the renderer view frustum culling is turned off.
-
boolean viewFrustumCulling = true;
/**
@@ -476,7 +481,11 @@ class MasterControl {
"compaction");
// by MIK OF CLASSX
- transparentOffScreen = getBooleanProperty("j3d.transparentOffScreen", transparentOffScreen,"transparent OffScreen");
+ transparentOffScreen = getBooleanProperty("j3d.transparentOffScreen", transparentOffScreen, "transparent OffScreen");
+
+ usePbuffer = getBooleanProperty("j3d.usePbuffer",
+ usePbuffer,
+ "Off-screen Pbuffer");
viewFrustumCulling = getBooleanProperty("j3d.viewFrustumCulling", viewFrustumCulling,"View frustum culling in the renderer is");