Package arc.graphics.g3d
Class VertexBatch3D
java.lang.Object
arc.graphics.g3d.VertexBatch3D
-
Constructor Summary
ConstructorDescriptionVertexBatch3D
(boolean hasNormals, boolean hasColors, int numTexCoords) VertexBatch3D
(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords) VertexBatch3D
(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords, Shader shader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
color
(float colorBits) void
color
(float r, float g, float b, float a) void
static Shader
createDefaultShader
(boolean hasNormals, boolean hasColors, int numTexCoords) Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified.void
dispose()
void
flush
(int primitiveType) void
int
int
void
normal
(float x, float y, float z) void
proj()
void
void
void
texCoord
(float u, float v) void
tri
(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, Color color) void
void
void
vertex
(float[] floats) void
vertex
(float x, float y, float z) void
void
-
Constructor Details
-
VertexBatch3D
public VertexBatch3D(boolean hasNormals, boolean hasColors, int numTexCoords) -
VertexBatch3D
public VertexBatch3D(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords) -
VertexBatch3D
public VertexBatch3D(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords, Shader shader)
-
-
Method Details
-
createDefaultShader
Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified. -
setShader
-
color
-
color
public void color(float r, float g, float b, float a) -
color
public void color(float colorBits) -
texCoord
public void texCoord(float u, float v) -
normal
-
normal
public void normal(float x, float y, float z) -
tri2
-
tri
-
tri
public void tri(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, Color color) -
vertex
-
vertex
-
vertex
public void vertex(float x, float y, float z) -
vertex
public void vertex(float[] floats) -
proj
-
proj
-
flush
public void flush(int primitiveType) -
flush
-
getNumVertices
public int getNumVertices() -
getMaxVertices
public int getMaxVertices() -
dispose
public void dispose()
-