Newer
Older
RxSprout / app / src / main / java / java3d / Texture2D.java
KeijuMatsumoto on 28 Nov 2017 416 bytes [add] Project
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;
	}
}