Java com.badlogic.gdx.graphics.g3d.utils MeshPartBuilder fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.g3d.utils MeshPartBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.g3d.utils MeshPartBuilder.

The text is from its open source code.

Method

voidarrow(float x1, float y1, float z1, float x2, float y2, float z2, float capLength, float stemThickness, int divisions)
Add an arrow
voidbox(float x, float y, float z, float width, float height, float depth)
Add a box at the specified location, with the specified dimensions
voidindex(final short value)
Add an index, MeshPartBuilder expects all meshes to be indexed.
voidline(float x1, float y1, float z1, float x2, float y2, float z2)
Add a line.
voidrect(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.
voidrect(short corner00, short corner10, short corner11, short corner01)
Add a rectangle by indices.
voidrect(VertexInfo corner00, VertexInfo corner10, VertexInfo corner11, VertexInfo corner01)
Add a rectangle.
voidsetColor(float r, float g, float b, float a)
Set the color used to tint the vertex color, defaults to white.
voidsetColor(final Color color)
Set the color used to tint the vertex color, defaults to white.
voidsetUVRange(float u1, float v1, float u2, float v2)
Set range of texture coordinates used (default is 0,0,1,1).
shortvertex(final float... values)
Add one or more vertices, returns the index of the last vertex added.
shortvertex(final VertexInfo info)
Add a vertex, returns the index.