diff options
author | Kevin Rushforth <[email protected]> | 2004-09-03 00:17:25 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2004-09-03 00:17:25 +0000 |
commit | 3e1d947d4c4827175d6b1bcf06f70962d1b4c15a (patch) | |
tree | 942d1381ae2925c203d3ec2e98841d048f3b0f72 /src/classes/share | |
parent | 3069025614f7b03f6ccd148a72dcb564ea8ebdd1 (diff) |
Issue number: 26
Added 3 new properties to Canvas3D.queryProperties() that applications can
check: texture3DWidthMax, texture3DHeightMax, and texture3DDepthMax.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@34 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/Canvas3D.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index 2135a9c..01f630e 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -751,12 +751,15 @@ public class Canvas3D extends Canvas { // Texture Boundary Width Max int textureBoundaryWidthMax = 0; - // Texture Width Max + // Texture Width, Height Max int textureWidthMax = 0; - - // Texture Height Max int textureHeightMax = 0; + // Texture3D Width, Heigh, Depth Max + int texture3DWidthMax = -1; + int texture3DHeightMax = -1; + int texture3DDepthMax = -1; + // Cached position & size for CanvasViewCache. // We don't want to call canvas.getxx method in Renderer // since it will cause deadlock as removeNotify() need to get @@ -3449,6 +3452,15 @@ public class Canvas3D extends Canvas { keys.add("textureHeightMax"); values.add(new Integer(textureHeightMax)); + keys.add("texture3DWidthMax"); + values.add(new Integer(texture3DWidthMax)); + + keys.add("texture3DHeightMax"); + values.add(new Integer(texture3DHeightMax)); + + keys.add("texture3DDepthMax"); + values.add(new Integer(texture3DDepthMax)); + keys.add("textureBoundaryWidthMax"); values.add(new Integer(textureBoundaryWidthMax)); |