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.

67 lines
1.2 KiB

package com.mykaruga.models.wavefront.loader;
public class Face {
public static final int GL_TRIANGLES = 3;
public static final int GL_QUADS = 4;
private Vertex[] vertices;
private Vertex[] normals;
private TextureCoordinate[] textures;
private Material material;
private int type;
public Face copy() {
Face f = new Face();
f.setVertices(vertices);
f.setNormals(normals);
f.setTextures(textures);
f.setMaterial(material);
return f;
}
public Vertex[] getVertices() {
return vertices;
}
public void setVertices(Vertex[] vertices) {
this.vertices = vertices;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public Vertex[] getNormals() {
return normals;
}
public void setNormals(Vertex[] normals) {
this.normals = normals;
}
public TextureCoordinate[] getTextures() {
return textures;
}
public void setTextures(TextureCoordinate[] textures) {
this.textures = textures;
}
public Material getMaterial() {
return material;
}
public void setMaterial(Material material) {
this.material = material;
}
}