Package zombie.core.opengl
Class VBOLines
java.lang.Object
zombie.core.opengl.VBOLines
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(float x, float y, float z, float r, float g, float b, float a) void
addLine
(float x0, float y0, float z0, float x1, float y1, float z1, float r, float g, float b, float a) void
addLine
(float x0, float y0, float z0, float x1, float y1, float z1, float r0, float g0, float b0, float a0, float r1, float g1, float b1, float a1) void
addQuad
(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a) void
addTriangle
(float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2, float r, float g, float b, float a) void
flush()
void
reserve
(int numElements) void
setDepthTest
(boolean enabled) void
setLineWidth
(float width) void
setMode
(int mode) void
setOffset
(float dx, float dy, float dz)
-
Constructor Details
-
VBOLines
public VBOLines()
-
-
Method Details
-
setOffset
public void setOffset(float dx, float dy, float dz) -
addElement
public void addElement(float x, float y, float z, float r, float g, float b, float a) -
addLine
public void addLine(float x0, float y0, float z0, float x1, float y1, float z1, float r, float g, float b, float a) -
addLine
public void addLine(float x0, float y0, float z0, float x1, float y1, float z1, float r0, float g0, float b0, float a0, float r1, float g1, float b1, float a1) -
addTriangle
public void addTriangle(float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2, float r, float g, float b, float a) -
addQuad
public void addQuad(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a) -
reserve
public void reserve(int numElements) -
flush
public void flush() -
setLineWidth
public void setLineWidth(float width) -
setMode
public void setMode(int mode) -
setDepthTest
public void setDepthTest(boolean enabled)
-