类 VertexBuffer
java.lang.Object
com.mojang.blaze3d.vertex.VertexBuffer
- 所有已实现的接口:
AutoCloseable
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private int
private VertexFormat
private int
private int
private VertexFormat.IndexType
private VertexFormat.Mode
private final VertexBuffer.Usage
private int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
_drawWithShader
(org.joml.Matrix4f pModelViewMatrix, org.joml.Matrix4f pProjectionMatrix, ShaderInstance pShader) void
bind()
void
close()
void
draw()
void
drawWithShader
(org.joml.Matrix4f pModelViewMatrix, org.joml.Matrix4f pProjectionMatrix, ShaderInstance pShader) private VertexFormat.IndexType
boolean
static void
unbind()
void
upload
(BufferBuilder.RenderedBuffer pBuffer) uploadIndexBuffer
(BufferBuilder.DrawState pDrawState, ByteBuffer pBuffer) private VertexFormat
uploadVertexBuffer
(BufferBuilder.DrawState pDrawState, ByteBuffer pBuffer)
-
字段详细资料
-
usage
-
vertexBufferId
private int vertexBufferId -
indexBufferId
private int indexBufferId -
arrayObjectId
private int arrayObjectId -
format
-
sequentialIndices
-
indexType
-
indexCount
private int indexCount -
mode
-
-
构造器详细资料
-
VertexBuffer
-
-
方法详细资料
-
upload
-
uploadVertexBuffer
-
uploadIndexBuffer
@Nullable private RenderSystem.AutoStorageIndexBuffer uploadIndexBuffer(BufferBuilder.DrawState pDrawState, ByteBuffer pBuffer) -
bind
public void bind() -
unbind
public static void unbind() -
draw
public void draw() -
getIndexType
-
drawWithShader
public void drawWithShader(org.joml.Matrix4f pModelViewMatrix, org.joml.Matrix4f pProjectionMatrix, ShaderInstance pShader) -
_drawWithShader
private void _drawWithShader(org.joml.Matrix4f pModelViewMatrix, org.joml.Matrix4f pProjectionMatrix, ShaderInstance pShader) -
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
getFormat
-
isInvalid
public boolean isInvalid()
-