public class WavefrontObject extends Object implements IModelCustom
Modifier and Type | Field and Description |
---|---|
ArrayList<GroupObject> |
groupObjects |
ArrayList<TextureCoordinate> |
textureCoordinates |
ArrayList<Vertex> |
vertexNormals |
ArrayList<Vertex> |
vertices |
Constructor and Description |
---|
WavefrontObject(String filename,
InputStream inputStream) |
WavefrontObject(String fileName,
URL resource) |
Modifier and Type | Method and Description |
---|---|
String |
getType() |
void |
renderAll() |
void |
renderAllExcept(String... excludedGroupNames) |
void |
renderOnly(String... groupNames) |
void |
renderPart(String partName) |
void |
tessellateAll(Tessellator tessellator) |
void |
tessellateAllExcept(Tessellator tessellator,
String... excludedGroupNames) |
void |
tessellateOnly(Tessellator tessellator,
String... groupNames) |
void |
tessellatePart(Tessellator tessellator,
String partName) |
public ArrayList<TextureCoordinate> textureCoordinates
public ArrayList<GroupObject> groupObjects
public WavefrontObject(String fileName, URL resource) throws ModelFormatException
ModelFormatException
public WavefrontObject(String filename, InputStream inputStream) throws ModelFormatException
ModelFormatException
public void renderAll()
renderAll
in interface IModelCustom
public void tessellateAll(Tessellator tessellator)
public void renderOnly(String... groupNames)
renderOnly
in interface IModelCustom
public void tessellateOnly(Tessellator tessellator, String... groupNames)
public void renderPart(String partName)
renderPart
in interface IModelCustom
public void tessellatePart(Tessellator tessellator, String partName)
public void renderAllExcept(String... excludedGroupNames)
renderAllExcept
in interface IModelCustom
public void tessellateAllExcept(Tessellator tessellator, String... excludedGroupNames)
public String getType()
getType
in interface IModelCustom