Newer
Older
RxSprout / app / src / main / java / java3d / TriangleArray.java
KeijuMatsumoto on 28 Nov 2017 508 bytes [add] Project
package java3d;

public class TriangleArray extends GeometryArray {

	public TriangleArray(int vertexCount, int vertexFormat) {
		super(vertexCount, vertexFormat);
	}

	@Override
	public NodeComponent cloneNodeComponent() {
		TriangleArray newOne = new TriangleArray(vertexCount, vertexFormat);
		newOne.vertexBuffer = vertexBuffer.duplicate();
		if (normalBuffer != null) newOne.normalBuffer = normalBuffer.duplicate();
		if (uvBuffer != null) newOne.uvBuffer = uvBuffer.duplicate();
		return newOne;
	}

}