Java com.badlogic.gdx.graphics Mesh fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Constructor

Method

BoundingBoxcalculateBoundingBox()
Calculates the BoundingBox of the vertices contained in this mesh.
voiddispose()
Frees all resources associated with this Mesh
voidgetIndices(short[] indices)
Copies the indices from the Mesh to the short array.
ShortBuffergetIndicesBuffer()
intgetMaxVertices()
intgetNumIndices()
intgetNumVertices()
VertexAttributesgetVertexAttributes()
intgetVertexSize()
float[]getVertices(int srcOffset, int count, float[] vertices)
Copies the specified vertices from the Mesh to the float array.
float[]getVertices(float[] vertices)
Copies the vertices from the Mesh to the float array.
FloatBuffergetVerticesBuffer()
voidrender(ShaderProgram shader, int primitiveType)

Renders the mesh using the given primitive type.

voidrender(ShaderProgram shader, int primitiveType, int offset, int count)

Renders the mesh using the given primitive type.

MeshsetIndices(short[] indices)
Sets the indices of this Mesh
MeshsetIndices(short[] indices, int offset, int count)
Sets the indices of this Mesh.
MeshsetVertices(float[] vertices)
Sets the vertices of this Mesh.
MeshsetVertices(float[] vertices, int offset, int count)
Sets the vertices of this Mesh.
MeshupdateVertices(int targetOffset, float[] source)
Update (a portion of) the vertices.