Spritesheet generator for the tortuga game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
762 B

package com.mykaruga.models.wavefront.loader;
import org.newdawn.slick.opengl.Texture;
public class Material {
private Texture texture;
private Vertex Kd;
private String name;
public Material(String name) {
this.name = name;
}
public Material(Material other) {
//this.texture = other.texture;
this.Kd = other.Kd;
this.name = other.name;
}
public Texture getTexture() {
return texture;
}
public Material setTexture(Texture texture) {
this.texture = texture;
return this;
}
public Vertex getKd() {
return Kd;
}
public void setKa(Vertex kd) {
Kd = kd;
}
@Override
public String toString() {
return "MAT." + name;
}
public String getName() {
return name;
}
}