Package net.minecraft.client.gl
Class VertexBuffer
java.lang.Object
net.minecraft.client.gl.VertexBuffer
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official dqnintermediary net/minecraft/class_291named net/minecraft/client/gl/VertexBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate VertexFormat.DrawModeprivate VertexFormatprivate intprivate booleanprivate intprivate intprivate intprivate VertexFormat.IntType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind()private voidvoidclose()voidvoidvoidinnerSetShader(Matrix4f viewMatrix, Matrix4f projectionMatrix, Shader shader)voidsubmitUpload(BufferBuilder buffer)static voidunbind()static voidvoidupload(BufferBuilder buffer)private voiduploadInternal(BufferBuilder buffer)
-
Field Details
-
vertexBufferId
private int vertexBufferId- Mappings:
Namespace Name Mixin selector official aLdqn;a:Iintermediary field_1594Lnet/minecraft/class_291;field_1594:Inamed vertexBufferIdLnet/minecraft/client/gl/VertexBuffer;vertexBufferId:I
-
indexBufferId
private int indexBufferId- Mappings:
Namespace Name Mixin selector official bLdqn;b:Iintermediary field_27366Lnet/minecraft/class_291;field_27366:Inamed indexBufferIdLnet/minecraft/client/gl/VertexBuffer;indexBufferId:I
-
vertexFormat
- Mappings:
Namespace Name Mixin selector official cLdqn;c:Ldqp$a;intermediary field_27367Lnet/minecraft/class_291;field_27367:Lnet/minecraft/class_293$class_5595;named vertexFormatLnet/minecraft/client/gl/VertexBuffer;vertexFormat:Lnet/minecraft/client/render/VertexFormat$IntType;
-
vertexArrayId
private int vertexArrayId- Mappings:
Namespace Name Mixin selector official dLdqn;d:Iintermediary field_29338Lnet/minecraft/class_291;field_29338:Inamed vertexArrayIdLnet/minecraft/client/gl/VertexBuffer;vertexArrayId:I
-
vertexCount
private int vertexCount- Mappings:
Namespace Name Mixin selector official eLdqn;e:Iintermediary field_1593Lnet/minecraft/class_291;field_1593:Inamed vertexCountLnet/minecraft/client/gl/VertexBuffer;vertexCount:I
-
drawMode
- Mappings:
Namespace Name Mixin selector official fLdqn;f:Ldqp$b;intermediary field_27368Lnet/minecraft/class_291;field_27368:Lnet/minecraft/class_293$class_5596;named drawModeLnet/minecraft/client/gl/VertexBuffer;drawMode:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
usesTexture
private boolean usesTexture- Mappings:
Namespace Name Mixin selector official gLdqn;g:Zintermediary field_27369Lnet/minecraft/class_291;field_27369:Znamed usesTextureLnet/minecraft/client/gl/VertexBuffer;usesTexture:Z
-
elementFormat
- Mappings:
Namespace Name Mixin selector official hLdqn;h:Ldqp;intermediary field_29339Lnet/minecraft/class_291;field_29339:Lnet/minecraft/class_293;named elementFormatLnet/minecraft/client/gl/VertexBuffer;elementFormat:Lnet/minecraft/client/render/VertexFormat;
-
-
Constructor Details
-
VertexBuffer
public VertexBuffer()
-
-
Method Details
-
bind
public void bind()- Mappings:
Namespace Name Mixin selector official aLdqn;a()Vintermediary method_1353Lnet/minecraft/class_291;method_1353()Vnamed bindLnet/minecraft/client/gl/VertexBuffer;bind()V
-
upload
- Mappings:
Namespace Name Mixin selector official aLdqn;a(Ldqf;)Vintermediary method_1352Lnet/minecraft/class_291;method_1352(Lnet/minecraft/class_287;)Vnamed uploadLnet/minecraft/client/gl/VertexBuffer;upload(Lnet/minecraft/client/render/BufferBuilder;)V
-
submitUpload
- Mappings:
Namespace Name Mixin selector official bLdqn;b(Ldqf;)Ljava/util/concurrent/CompletableFuture;intermediary method_22643Lnet/minecraft/class_291;method_22643(Lnet/minecraft/class_287;)Ljava/util/concurrent/CompletableFuture;named submitUploadLnet/minecraft/client/gl/VertexBuffer;submitUpload(Lnet/minecraft/client/render/BufferBuilder;)Ljava/util/concurrent/CompletableFuture;
-
uploadInternal
- Mappings:
Namespace Name Mixin selector official cLdqn;c(Ldqf;)Vintermediary method_22644Lnet/minecraft/class_291;method_22644(Lnet/minecraft/class_287;)Vnamed uploadInternalLnet/minecraft/client/gl/VertexBuffer;uploadInternal(Lnet/minecraft/client/render/BufferBuilder;)V
-
bindVertexArray
private void bindVertexArray()- Mappings:
Namespace Name Mixin selector official gLdqn;g()Vintermediary method_34437Lnet/minecraft/class_291;method_34437()Vnamed bindVertexArrayLnet/minecraft/client/gl/VertexBuffer;bindVertexArray()V
-
unbindVertexArray
public static void unbindVertexArray()- Mappings:
Namespace Name Mixin selector official bLdqn;b()Vintermediary method_34430Lnet/minecraft/class_291;method_34430()Vnamed unbindVertexArrayLnet/minecraft/client/gl/VertexBuffer;unbindVertexArray()V
-
drawElements
public void drawElements()- Mappings:
Namespace Name Mixin selector official cLdqn;c()Vintermediary method_35665Lnet/minecraft/class_291;method_35665()Vnamed drawElementsLnet/minecraft/client/gl/VertexBuffer;drawElements()V
-
setShader
- Mappings:
Namespace Name Mixin selector official aLdqn;a(Ld;Ld;Lens;)Vintermediary method_34427Lnet/minecraft/class_291;method_34427(Lnet/minecraft/class_1159;Lnet/minecraft/class_1159;Lnet/minecraft/class_5944;)Vnamed setShaderLnet/minecraft/client/gl/VertexBuffer;setShader(Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/Shader;)V
-
innerSetShader
- Mappings:
Namespace Name Mixin selector official bLdqn;b(Ld;Ld;Lens;)Vintermediary method_34431Lnet/minecraft/class_291;method_34431(Lnet/minecraft/class_1159;Lnet/minecraft/class_1159;Lnet/minecraft/class_5944;)Vnamed innerSetShaderLnet/minecraft/client/gl/VertexBuffer;innerSetShader(Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/Shader;)V
-
drawVertices
public void drawVertices()- Mappings:
Namespace Name Mixin selector official dLdqn;d()Vintermediary method_34432Lnet/minecraft/class_291;method_34432()Vnamed drawVerticesLnet/minecraft/client/gl/VertexBuffer;drawVertices()V
-
unbind
public static void unbind()- Mappings:
Namespace Name Mixin selector official eLdqn;e()Vintermediary method_1354Lnet/minecraft/class_291;method_1354()Vnamed unbindLnet/minecraft/client/gl/VertexBuffer;unbind()V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getElementFormat
- Mappings:
Namespace Name Mixin selector official fLdqn;f()Ldqp;intermediary method_34435Lnet/minecraft/class_291;method_34435()Lnet/minecraft/class_293;named getElementFormatLnet/minecraft/client/gl/VertexBuffer;getElementFormat()Lnet/minecraft/client/render/VertexFormat;
-