public abstract class VertexWrapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
mode |
| Modifier | Constructor and Description |
|---|---|
protected |
VertexWrapper(int mode,
int numVertices,
int... vertexSizes) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
begin() |
protected void |
clearBuffers() |
VertexWrapper |
color(ColorCache color) |
VertexWrapper |
color(float r,
float g,
float b,
float a) |
VertexWrapper |
color(Vector4 color) |
protected abstract void |
draw() |
void |
endVertex() |
void |
finish() |
@Nullable Vertex |
getCurrentVertex() |
Vertex |
getVertex(int i) |
protected abstract void |
onVertexEnded(java.lang.Number[][] numbers) |
VertexWrapper |
pos(double x,
double y,
double z) |
VertexWrapper |
pos(Vector3 pos) |
void |
setVertexSize(int... vertexSizes) |
void |
start() |
VertexWrapper |
tex(double u,
double v) |
VertexWrapper |
tex(Vector2 uv) |
protected VertexWrapper(int mode,
int numVertices,
int... vertexSizes)
protected abstract void begin()
protected void clearBuffers()
public VertexWrapper color(ColorCache color)
public VertexWrapper color(Vector4 color)
public VertexWrapper color(float r, float g, float b, float a)
protected abstract void draw()
public void endVertex()
public void finish()
@Nullable public @Nullable Vertex getCurrentVertex()
public Vertex getVertex(int i)
protected abstract void onVertexEnded(java.lang.Number[][] numbers)
public VertexWrapper pos(Vector3 pos)
public VertexWrapper pos(double x, double y, double z)
public void setVertexSize(int... vertexSizes)
public void start()
public VertexWrapper tex(Vector2 uv)
public VertexWrapper tex(double u, double v)