Package engine.objConverter
Class ModelData
java.lang.Object
engine.objConverter.ModelData
The modelData class is storing the data of the object to load it later.
-
Constructor Summary
ConstructorsConstructorDescriptionModelData
(float[] vertices, float[] textureCoords, float[] normals, int[] indices, float furthestPoint) -
Method Summary
Modifier and TypeMethodDescriptionint[]
float[]
float[]
float[]
-
Constructor Details
-
ModelData
public ModelData(float[] vertices, float[] textureCoords, float[] normals, int[] indices, float furthestPoint)
-
-
Method Details
-
getVertices
public float[] getVertices()- Returns:
- float array of all Vertices in the asset.
-
getTextureCoords
public float[] getTextureCoords()- Returns:
- float array of the texture coordinates of the asset - also known as UV coords.
-
getNormals
public float[] getNormals()- Returns:
- float array of the normals of the asset used in lighting calculations.
-
getIndices
public int[] getIndices()- Returns:
- int array of the indices which specify to shader how vertices of assets should be connected.
-