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, waitlightmap, normal, normalInt, overlay, pos, tex, texShortaddQuad, addQuad, color, lightmap, normal, overlay, posaddVertexData, addVertexData, addVertexData, addVertexData, applyBakedLighting, applyBakedNormals, getVertexBuilderprotected 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.IVertexConsumerpublic void putShort(int indexIn,
short shortIn)
putShort インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumerpublic void putFloat(int indexIn,
float floatIn)
putFloat インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumerpublic void endVertex()
endVertex インタフェース内 com.mojang.blaze3d.vertex.IVertexBuilderpublic void nextVertexFormatIndex()
nextVertexFormatIndex インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumerpublic com.mojang.blaze3d.vertex.IVertexBuilder color(int red,
int green,
int blue,
int alpha)
color インタフェース内 com.mojang.blaze3d.vertex.IVertexBuildercolor インタフェース内 com.mojang.blaze3d.vertex.IVertexConsumerpublic 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.IVertexBuilderpublic 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.IVertexConsumerpublic boolean isDrawing()
public void putBulkData(java.nio.ByteBuffer buffer)
public VertexFormat getVertexFormat()