Class VertexBufferMixin
java.lang.Object
team.lodestar.lodestone.mixin.client.VertexBufferMixin
- All Implemented Interfaces:
IVertexBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeVBO(int binding, FloatBuffer buffer, com.mojang.blaze3d.vertex.VertexBuffer.Usage usage, Consumer<Integer> setup) abstract voidbind()voidclose(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) voiddrawInstanced(int instances) voiddrawWithShaderInstanced(org.joml.Matrix4f modelViewMatrix, org.joml.Matrix4f projectionMatrix, net.minecraft.client.renderer.ShaderInstance shader, int instances) abstract com.mojang.blaze3d.vertex.VertexFormat.IndexType
-
Constructor Details
-
VertexBufferMixin
public VertexBufferMixin()
-
-
Method Details
-
drawInstanced
public void drawInstanced(int instances) - Specified by:
drawInstancedin interfaceIVertexBuffer
-
drawWithShaderInstanced
public void drawWithShaderInstanced(org.joml.Matrix4f modelViewMatrix, org.joml.Matrix4f projectionMatrix, net.minecraft.client.renderer.ShaderInstance shader, int instances) - Specified by:
drawWithShaderInstancedin interfaceIVertexBuffer
-
addAttributeVBO
public void addAttributeVBO(int binding, FloatBuffer buffer, com.mojang.blaze3d.vertex.VertexBuffer.Usage usage, Consumer<Integer> setup) - Specified by:
addAttributeVBOin interfaceIVertexBuffer
-
close
public void close(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) -
getIndexType
public abstract com.mojang.blaze3d.vertex.VertexFormat.IndexType getIndexType() -
bind
public abstract void bind()
-