| Modifier and Type | Class and Description |
|---|---|
| public static class | MeshPartBuilder.
Class that contains all vertex information the builder can use. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | addMesh(Mesh
The mesh to (partly) copy, must have the same vertex attributes and must be indexed. mesh, int The zero-based offset of the first index of the part of the mesh to copy. indexOffset, int The number of indices of the part of the mesh to copy. numIndices)Copies a (part of a) mesh to the mesh (part) currently being build. |
| public void | addMesh(float[]
The vertices to copy, must be in the same vertex layout as the mesh being build. vertices, short[] Array containing the indices to copy, each index should be valid in the vertices array. indices)Copies a mesh to the mesh (part) currently being build. |
| public void | addMesh(float[]
The vertices to (partly) copy, must be in the same vertex layout as the mesh being build. vertices, short[] Array containing the indices to (partly) copy, each index should be valid in the vertices array. indices, int The zero-based offset of the first index of the part of indices array to copy. indexOffset, int The number of indices of the part of the indices array to copy. numIndices)Copies a (part of a) mesh to the mesh (part) currently being build. |
| public void | arrow(float x1, float y1, float z1, float x2, float y2, float z2, float capLength, float stemThickness, int divisions)
Deprecated
Use ArrowShapeBuilder.build instead.
|
| public void | box(MeshPartBuilder.
Deprecated
use BoxShapeBuilder.build instead.
|
| public void | |
| public void | |
| public void | |
| public void | box(float x, float y, float z, float width, float height, float depth)
Deprecated
use BoxShapeBuilder.build instead.
|
| public void | capsule(float radius, float height, int divisions)
Deprecated
Use CapsuleShapeBuilder.build instead.
|
| public void | circle(float radius, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | |
| public void | |
| public void | circle(float radius, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float tangentX, float tangentY, float tangentZ, float binormalX, float binormalY, float binormalZ)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | circle(float radius, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float angleFrom, float angleTo)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | |
| public void | |
| public void | circle(float radius, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float tangentX, float tangentY, float tangentZ, float binormalX, float binormalY, float binormalZ, float angleFrom, float angleTo)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | cone(float width, float height, float depth, int divisions)
Deprecated
Use ConeShapeBuilder.build instead.
|
| public void | cone(float width, float height, float depth, int divisions, float angleFrom, float angleTo)
Deprecated
Use ConeShapeBuilder.build instead.
|
| public void | cylinder(float width, float height, float depth, int divisions)
Deprecated
Use CylinderShapeBuilder.build instead.
|
| public void | cylinder(float width, float height, float depth, int divisions, float angleFrom, float angleTo)
Deprecated
Use CylinderShapeBuilder.build instead.
|
| public void | cylinder(float width, float height, float depth, int divisions, float angleFrom, float angleTo, boolean close)
Deprecated
Use CylinderShapeBuilder.build instead.
|
| public void | ellipse(float width, float height, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | |
| public void | |
| public void | ellipse(float width, float height, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float tangentX, float tangentY, float tangentZ, float binormalX, float binormalY, float binormalZ)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | ellipse(float width, float height, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float angleFrom, float angleTo)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | |
| public void | |
| public void | ellipse(float width, float height, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float tangentX, float tangentY, float tangentZ, float binormalX, float binormalY, float binormalZ, float angleFrom, float angleTo)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | ellipse(float width, float height, float innerWidth, float innerHeight, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float tangentX, float tangentY, float tangentZ, float binormalX, float binormalY, float binormalZ, float angleFrom, float angleTo)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | ellipse(float width, float height, float innerWidth, float innerHeight, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ, float angleFrom, float angleTo)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | ellipse(float width, float height, float innerWidth, float innerHeight, int divisions, float centerX, float centerY, float centerZ, float normalX, float normalY, float normalZ)
Deprecated
Use EllipseShapeBuilder.build instead.
|
| public void | |
| public void | ensureCapacity(int
The number of vertices you are about to add numVertices, int The number of indices you are about to add numIndices)Increases the size of the backing vertices and indices arrays to accommodate the specified number of additional vertices and indices. |
| public void | ensureIndices(int
The number of indices you are about to add numIndices)Increases the size of the backing indices array to accommodate the specified number of additional indices. |
| public void | ensureRectangleIndices(int
The number of rectangles you are about to add numRectangles)Increases the size of the backing indices array to accommodate the specified number of additional rectangles. |
| public void | ensureTriangleIndices(int
The number of triangles you are about to add numTriangles)Increases the size of the backing indices array to accommodate the specified number of additional triangles. |
| public void | ensureVertices(int
The number of vertices you are about to add numVertices)Increases the size of the backing vertices array to accommodate the specified number of additional vertices. |
| public VertexAttributes | |
| public MeshPart | |
| public int | getPrimitiveType()
Returns: The primitive type used for building, e.g. |
| public Matrix4 | |
| public void | |
| public void | index(short value1, short value2)
Add multiple indices, MeshPartBuilder expects all meshes to be indexed. |
| public void | index(short value1, short value2, short value3)
Add multiple indices, MeshPartBuilder expects all meshes to be indexed. |
| public void | index(short value1, short value2, short value3, short value4)
Add multiple indices, MeshPartBuilder expects all meshes to be indexed. |
| public void | index(short value1, short value2, short value3, short value4, short value5, short value6)
Add multiple indices, MeshPartBuilder expects all meshes to be indexed. |
| public void | index(short value1, short value2, short value3, short value4, short value5, short value6, short value7, short value8)
Add multiple indices, MeshPartBuilder expects all meshes to be indexed. |
| public boolean | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | patch(MeshPartBuilder.
Deprecated
use PatchShapeBuilder.build instead.
|
| public void | |
| public void | patch(float x00, float y00, float z00, float x10, float y10, float z10, float x11, float y11, float z11, float x01, float y01, float z01, float normalX, float normalY, float normalZ, int divisionsU, int divisionsV)
Deprecated
use PatchShapeBuilder.build instead.
|
| public void | |
| public void | rect(MeshPartBuilder.
Add a rectangle. |
| public void | |
| public void | rect(float x00, float y00, float z00, float x10, float y10, float z10, float x11, float y11, float z11, float x01, float y01, float z01, float normalX, float normalY, float normalZ)
Add a rectangle Requires GL_POINTS, GL_LINES or GL_TRIANGLES primitive type. |
| public void | |
| public void | setColor(float r, float g, float b, float a)
Set the color used to tint the vertex color, defaults to white. |
| public void | setUVRange(float u1, float v1, float u2, float v2)
Set range of texture coordinates used (default is 0,0,1,1). |
| public void | |
| public void | setVertexTransform(Matrix4 transform)
Set the current vertex transformation matrix and enables vertex transformation. |
| public void | |
| public void | sphere(float width, float height, float depth, int divisionsU, int divisionsV)
Deprecated
Use SphereShapeBuilder.build instead.
|
| public void | |
| public void | sphere(float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)
Deprecated
Use SphereShapeBuilder.build instead.
|
| public void | |
| public void | |
| public void | triangle(MeshPartBuilder.
Add a triangle. |
| public void | |
| public void | |
| public short | |
| public short | |
| public short |