Newer
Older
CactusClient / src / java3d / Texture2D.java
n-konishi on 8 May 2018 416 bytes first commit
package java3d;

public class Texture2D extends Texture {

	public Texture2D(int mipmapMode, int format, int width, int hight) {
		super(mipmapMode, format, width, hight);
		imageComponents = new ImageComponent[1];
	}

	@Override
	public NodeComponent cloneNodeComponent() {
		Texture2D tex2D = new Texture2D(mipmapMode, format, width, hight);
		tex2D.imageComponents = imageComponents.clone();
		return tex2D;
	}
}