Example usage for Java com.badlogic.gdx.graphics Mesh fields, constructors, methods, implement or subclass
The text is from its open source code.
Mesh(boolean isStatic, int maxVertices, int maxIndices, VertexAttribute... attributes) Creates a new Mesh with the given attributes. | |
Mesh(boolean isStatic, int maxVertices, int maxIndices, VertexAttributes attributes) Creates a new Mesh with the given attributes. | |
Mesh(boolean staticVertices, boolean staticIndices, int maxVertices, int maxIndices, VertexAttributes attributes) by jw: Creates a new Mesh with the given attributes. | |
Mesh(VertexDataType type, boolean isStatic, int maxVertices, int maxIndices, VertexAttribute... attributes) Creates a new Mesh with the given attributes. |
BoundingBox | calculateBoundingBox() Calculates the BoundingBox of the vertices contained in this mesh. |
void | dispose() Frees all resources associated with this Mesh |
void | getIndices(short[] indices) Copies the indices from the Mesh to the short array. |
ShortBuffer | getIndicesBuffer() |
int | getMaxVertices() |
int | getNumIndices() |
int | getNumVertices() |
VertexAttributes | getVertexAttributes() |
int | getVertexSize() |
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. |
FloatBuffer | getVerticesBuffer() |
void | render(ShaderProgram shader, int primitiveType) Renders the mesh using the given primitive type. |
void | render(ShaderProgram shader, int primitiveType, int offset, int count) Renders the mesh using the given primitive type. |
Mesh | setIndices(short[] indices) Sets the indices of this Mesh |
Mesh | setIndices(short[] indices, int offset, int count) Sets the indices of this Mesh. |
Mesh | setVertices(float[] vertices) Sets the vertices of this Mesh. |
Mesh | setVertices(float[] vertices, int offset, int count) Sets the vertices of this Mesh. |
Mesh | updateVertices(int targetOffset, float[] source) Update (a portion of) the vertices. |