summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java
index 46aef2a..d412977 100644
--- a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java
+++ b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java
@@ -44,13 +44,9 @@
package com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d;
-import java.io.IOException;
-import java.io.ByteArrayOutputStream;
-import java.io.ByteArrayInputStream;
import java.io.DataInput;
import java.io.DataOutput;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
+import java.io.IOException;
import javax.media.j3d.QuadArray;
import javax.media.j3d.SceneGraphObject;
import com.sun.j3d.utils.scenegraph.io.retained.Controller;
@@ -72,14 +68,20 @@ public class QuadArrayState extends GeometryArrayState {
}
public SceneGraphObject createNode( Class j3dClass ) {
- return super.createNode( j3dClass, new Class[] { Integer.TYPE,
- Integer.TYPE },
+ return createNode( j3dClass, new Class[] {
+ Integer.TYPE,
+ Integer.TYPE,
+ Integer.TYPE,
+ texCoordSetMap.getClass()
+ },
new Object[] { new Integer( vertexCount ),
- new Integer( vertexFormat ) });
+ new Integer( vertexFormat ),
+ new Integer( texCoordSetCount ),
+ texCoordSetMap } );
}
protected javax.media.j3d.SceneGraphObject createNode() {
- return new QuadArray( vertexCount, vertexFormat );
+ return new QuadArray(vertexCount, vertexFormat, texCoordSetCount, texCoordSetMap );
}