public class BufferBuilder
extends com.mojang.blaze3d.vertex.DefaultColorVertexBuilder
implements com.mojang.blaze3d.vertex.IVertexConsumer
修飾子とタイプ | クラスと説明 |
---|---|
static class |
BufferBuilder.DrawState |
static class |
BufferBuilder.State |
コンストラクタと説明 |
---|
BufferBuilder(int bufferSizeIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addVertex(float x,
float y,
float z,
float red,
float green,
float blue,
float alpha,
float texU,
float texV,
int overlayUV,
int lightmapUV,
float normalX,
float normalY,
float normalZ) |
void |
begin(int glMode,
VertexFormat format) |
com.mojang.blaze3d.vertex.IVertexBuilder |
color(int red,
int green,
int blue,
int alpha) |
void |
discard() |
void |
endVertex() |
void |
finishDrawing() |
VertexFormatElement |
getCurrentElement() |
com.mojang.datafixers.util.Pair<BufferBuilder.DrawState,java.nio.ByteBuffer> |
getNextBuffer() |
VertexFormat |
getVertexFormat() |
BufferBuilder.State |
getVertexState() |
protected void |
growBuffer() |
boolean |
isDrawing() |
void |
nextVertexFormatIndex() |
void |
putBulkData(java.nio.ByteBuffer buffer) |
void |
putByte(int indexIn,
byte byteIn) |
void |
putFloat(int indexIn,
float floatIn) |
void |
putShort(int indexIn,
short shortIn) |
void |
reset() |
void |
setVertexState(BufferBuilder.State state) |
void |
sortVertexData(float cameraX,
float cameraY,
float cameraZ) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lightmap, normal, normalInt, overlay, pos, tex, texShort
addQuad, addQuad, color, lightmap, normal, overlay, pos
addVertexData, addVertexData, addVertexData, addVertexData, applyBakedLighting, applyBakedNormals, getVertexBuilder
protected void growBuffer()
public void sortVertexData(float cameraX, float cameraY, float cameraZ)
public BufferBuilder.State getVertexState()
public void setVertexState(BufferBuilder.State state)
public void begin(int glMode, VertexFormat format)
public void finishDrawing()
public void putByte(int indexIn, byte byteIn)
putByte
インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumer
public void putShort(int indexIn, short shortIn)
putShort
インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumer
public void putFloat(int indexIn, float floatIn)
putFloat
インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumer
public void endVertex()
endVertex
インタフェース内 com.mojang.blaze3d.vertex.IVertexBuilder
public void nextVertexFormatIndex()
nextVertexFormatIndex
インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumer
public com.mojang.blaze3d.vertex.IVertexBuilder color(int red, int green, int blue, int alpha)
color
インタフェース内 com.mojang.blaze3d.vertex.IVertexBuilder
color
インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumer
public void addVertex(float x, float y, float z, float red, float green, float blue, float alpha, float texU, float texV, int overlayUV, int lightmapUV, float normalX, float normalY, float normalZ)
addVertex
インタフェース内 com.mojang.blaze3d.vertex.IVertexBuilder
public com.mojang.datafixers.util.Pair<BufferBuilder.DrawState,java.nio.ByteBuffer> getNextBuffer()
public void reset()
public void discard()
public VertexFormatElement getCurrentElement()
getCurrentElement
インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumer
public boolean isDrawing()
public void putBulkData(java.nio.ByteBuffer buffer)
public VertexFormat getVertexFormat()