| Modifier and Type | Method and Description |
|---|---|
static Obj |
create()
Creates a new default
Obj |
static Obj |
createFromIndexedTriangleData(IntBuffer indices,
FloatBuffer vertices,
FloatBuffer texCoords,
FloatBuffer normals)
Create an
Obj from the given (single-) indexed triangle data. |
public static Obj createFromIndexedTriangleData(IntBuffer indices, FloatBuffer vertices, FloatBuffer texCoords, FloatBuffer normals)
Obj from the given (single-) indexed triangle data.null.null will be accessed using
the absolute access methods, up to their capacity. This means
that the position of the given buffers will not be affected.indices - The indices. Three consecutive elements of this buffer
are assumed to form one triangle.vertices - The verticestexCoords - The texture coordinates, assumed to be 2D.normals - The normalsObjNullPointerException - If the indices or vertices are
null.Copyright © 2018. All rights reserved.