public class BufferBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
BufferBuilder.State |
Constructor and Description |
---|
BufferBuilder(int bufferSizeIn) |
Modifier and Type | Method and Description |
---|---|
void |
addVertexData(int[] vertexData) |
void |
begin(int glMode,
VertexFormat format) |
BufferBuilder |
color(float red,
float green,
float blue,
float alpha) |
BufferBuilder |
color(int red,
int green,
int blue,
int alpha) |
void |
endVertex() |
void |
finishDrawing() |
java.nio.ByteBuffer |
getByteBuffer() |
int |
getColorIndex(int vertexIndex) |
int |
getDrawMode() |
int |
getVertexCount() |
VertexFormat |
getVertexFormat() |
BufferBuilder.State |
getVertexState() |
boolean |
isColorDisabled() |
BufferBuilder |
lightmap(int skyLight,
int blockLight) |
void |
noColor() |
BufferBuilder |
normal(float x,
float y,
float z) |
BufferBuilder |
pos(double x,
double y,
double z) |
void |
putBrightness4(int vertex0,
int vertex1,
int vertex2,
int vertex3) |
void |
putBulkData(java.nio.ByteBuffer buffer) |
void |
putColor4(int argb) |
void |
putColorMultiplier(float red,
float green,
float blue,
int vertexIndex) |
void |
putColorRGB_F(float red,
float green,
float blue,
int vertexIndex) |
void |
putColorRGB_F4(float red,
float green,
float blue) |
void |
putColorRGBA(int index,
int red,
int green,
int blue) |
void |
putColorRGBA(int index,
int red,
int green,
int blue,
int alpha) |
void |
putNormal(float x,
float y,
float z) |
void |
putPosition(double x,
double y,
double z) |
void |
reset() |
void |
setTranslation(double x,
double y,
double z) |
void |
setVertexState(BufferBuilder.State state) |
void |
sortVertexData(float cameraX,
float cameraY,
float cameraZ) |
BufferBuilder |
tex(double u,
double v) |
public void sortVertexData(float cameraX, float cameraY, float cameraZ)
public BufferBuilder.State getVertexState()
public void setVertexState(BufferBuilder.State state)
public void reset()
public void begin(int glMode, VertexFormat format)
public BufferBuilder tex(double u, double v)
public BufferBuilder lightmap(int skyLight, int blockLight)
public void putBrightness4(int vertex0, int vertex1, int vertex2, int vertex3)
public void putPosition(double x, double y, double z)
public int getColorIndex(int vertexIndex)
public void putColorMultiplier(float red, float green, float blue, int vertexIndex)
public void putColorRGB_F(float red, float green, float blue, int vertexIndex)
public void putColorRGBA(int index, int red, int green, int blue)
public void noColor()
public BufferBuilder color(float red, float green, float blue, float alpha)
public BufferBuilder color(int red, int green, int blue, int alpha)
public void addVertexData(int[] vertexData)
public void endVertex()
public BufferBuilder pos(double x, double y, double z)
public void putNormal(float x, float y, float z)
public BufferBuilder normal(float x, float y, float z)
public void setTranslation(double x, double y, double z)
public void finishDrawing()
public java.nio.ByteBuffer getByteBuffer()
public VertexFormat getVertexFormat()
public int getVertexCount()
public int getDrawMode()
public void putColor4(int argb)
public void putColorRGB_F4(float red, float green, float blue)
public void putColorRGBA(int index, int red, int green, int blue, int alpha)
public boolean isColorDisabled()
public void putBulkData(java.nio.ByteBuffer buffer)