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
ModelFormatExceptionpublic WavefrontObject(String filename, InputStream inputStream) throws ModelFormatException
ModelFormatExceptionpublic void renderAll()
renderAll in interface IModelCustompublic void tessellateAll(Tessellator tessellator)
public void renderOnly(String... groupNames)
renderOnly in interface IModelCustompublic void tessellateOnly(Tessellator tessellator, String... groupNames)
public void renderPart(String partName)
renderPart in interface IModelCustompublic void tessellatePart(Tessellator tessellator, String partName)
public void renderAllExcept(String... excludedGroupNames)
renderAllExcept in interface IModelCustompublic void tessellateAllExcept(Tessellator tessellator, String... excludedGroupNames)
public String getType()
getType in interface IModelCustom