diff options
author | Harvey Harrison <[email protected]> | 2013-07-10 23:50:42 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-07-10 23:50:42 -0700 |
commit | cb810fae78bf00b0c23205c49236af4b768e4267 (patch) | |
tree | 818322e16ecbfe09ffddb9261fff145e0aaf2720 /src/classes | |
parent | 736a280771cac7b6002aa66432b5b83ffdee0963 (diff) |
j3dcore: provide a public interface for AutoOffScreenCanvas3D to allow core to build separately from j3dutils
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java | 22 | ||||
-rw-r--r-- | src/classes/share/javax/media/j3d/Canvas3D.java | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java b/src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java new file mode 100644 index 0000000..4bcfa45 --- /dev/null +++ b/src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java @@ -0,0 +1,22 @@ +/* + * Copyright 2013 Harvey Harrison + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + */ +package javax.media.j3d; + +/** + * An interface used to tag Canavs3d subclasses as being offsceen. + */ +public interface AutoOffScreenCanvas3D {} diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index ab9f0a3..cd0a640 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -1049,7 +1049,7 @@ ArrayList<TextureRetained> textureIDResourceTable = new ArrayList<TextureRetaine // canvas3d implements the AutoOffScreenCanvas3D tagging interface. // Eventually, we may replace this with an actual API. boolean autoOffScreenCanvas3D = false; - if (this instanceof com.sun.j3d.exp.swing.impl.AutoOffScreenCanvas3D) { + if (this instanceof AutoOffScreenCanvas3D) { autoOffScreenCanvas3D = true; } |