|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.ac3d.AC3DSurface
public class AC3DSurface
Contains all the information for a surface The vertex references and texture coordinates are returned in arrays, these arrays are ordered the same, so index i in the vertex reference array referes to the same vertex as as index i in the texture coordinate array.
| Field Summary | |
|---|---|
static int |
CLOSED_LINE
closed line type |
static int |
LINE
open line type |
static int |
POLYGON
polygon type |
| Constructor Summary | |
|---|---|
AC3DSurface(int type,
boolean twoSided,
boolean shaded,
int material,
int[] surfVerts,
float[] textCoords)
Creates new AC3DSurface |
|
| Method Summary | |
|---|---|
int |
getMaterialIndex()
Gets the material id of this surface |
float[] |
getTextureCoordinates()
|
int |
getType()
|
java.lang.Object |
getUserObject()
|
int |
getVertexReferenceCount()
Gets the vertex count, used to verify that this surface is valid e.g. that asa poly it must have more than 3 vertecies |
int[] |
getVertexReferences()
Gets vertecies as reference to vertecies in the parent AC3DObject |
boolean |
hasTextureCoordinates()
|
boolean |
isLine()
Is this surface a line? |
boolean |
isShaded()
|
boolean |
isTwoSided()
Is this surface two sided? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int POLYGON
public static final int CLOSED_LINE
public static final int LINE
| Constructor Detail |
|---|
public AC3DSurface(int type,
boolean twoSided,
boolean shaded,
int material,
int[] surfVerts,
float[] textCoords)
type - The type of this objecttwoSided - Indication of twosided/singlesidedshaded - Indication of shadinging on/offmaterial - The index to the material to usesurfVerts - The index of the vertextextCoords - The texture coordinates (unmodified)| Method Detail |
|---|
public int getType()
public int getVertexReferenceCount()
public int[] getVertexReferences()
public boolean hasTextureCoordinates()
public float[] getTextureCoordinates()
public boolean isLine()
public boolean isTwoSided()
public boolean isShaded()
public int getMaterialIndex()
public java.lang.Object getUserObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||