2019-11-07 13:03:04 -05:00
|
|
|
CLASS net/minecraft/class_291 net/minecraft/client/gl/VertexBuffer
|
2022-09-03 13:01:33 -04:00
|
|
|
COMMENT Stores vertex data on GPU.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If you don't need to change the geometry, you can upload data once
|
|
|
|
COMMENT and reuse it every frame. For example, {@linkplain
|
|
|
|
COMMENT net.minecraft.client.render.WorldRenderer#renderStars star rendering}
|
|
|
|
COMMENT uses this technique to save bandwidth.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @implNote This is mostly a wrapper around vertex buffer object (VBO),
|
|
|
|
COMMENT element buffer object (EBO), and vertex array object (VAO).
|
2022-11-02 10:30:38 -04:00
|
|
|
FIELD field_1593 indexCount I
|
2020-12-28 08:08:33 -05:00
|
|
|
FIELD field_1594 vertexBufferId I
|
|
|
|
FIELD field_27366 indexBufferId I
|
2022-05-01 12:50:50 -04:00
|
|
|
FIELD field_27367 indexType Lnet/minecraft/class_293$class_5595;
|
2021-04-18 09:03:07 -04:00
|
|
|
FIELD field_27368 drawMode Lnet/minecraft/class_293$class_5596;
|
|
|
|
FIELD field_29338 vertexArrayId I
|
2022-01-17 16:23:04 -05:00
|
|
|
FIELD field_29339 vertexFormat Lnet/minecraft/class_293;
|
2022-11-02 10:30:38 -04:00
|
|
|
FIELD field_38983 sharedSequentialIndexBuffer Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;
|
2023-05-05 23:28:33 -04:00
|
|
|
FIELD field_44792 usage Lnet/minecraft/class_291$class_8555;
|
|
|
|
METHOD <init> (Lnet/minecraft/class_291$class_8555;)V
|
|
|
|
ARG 1 usage
|
2022-04-27 13:09:08 -04:00
|
|
|
METHOD method_1352 upload (Lnet/minecraft/class_287$class_7433;)V
|
2022-09-03 13:01:33 -04:00
|
|
|
COMMENT Uploads the contents of {@code buffer} to GPU, discarding previously
|
|
|
|
COMMENT uploaded data.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The caller of this method must {@linkplain #bind bind} this vertex
|
|
|
|
COMMENT buffer before calling this method.
|
2022-05-17 05:57:10 -04:00
|
|
|
ARG 1 buffer
|
2019-11-07 13:03:04 -05:00
|
|
|
METHOD method_1353 bind ()V
|
2022-09-03 13:01:33 -04:00
|
|
|
COMMENT Sets this vertex buffer as the current one.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This method must be called before uploading or drawing data.
|
2019-11-07 13:03:04 -05:00
|
|
|
METHOD method_1354 unbind ()V
|
2022-10-26 10:05:20 -04:00
|
|
|
METHOD method_34427 draw (Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lnet/minecraft/class_5944;)V
|
2022-11-16 07:53:09 -05:00
|
|
|
COMMENT Draws the contents in this vertex buffer with {@code program}.
|
2022-09-03 13:01:33 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The caller of this method must {@linkplain #bind bind} this vertex
|
|
|
|
COMMENT buffer before calling this method.
|
2021-04-18 09:03:07 -04:00
|
|
|
ARG 1 viewMatrix
|
|
|
|
ARG 2 projectionMatrix
|
2022-11-16 07:53:09 -05:00
|
|
|
ARG 3 program
|
2022-10-26 10:05:20 -04:00
|
|
|
METHOD method_34431 drawInternal (Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lnet/minecraft/class_5944;)V
|
2021-04-18 09:03:07 -04:00
|
|
|
ARG 1 viewMatrix
|
|
|
|
ARG 2 projectionMatrix
|
2022-11-16 07:53:09 -05:00
|
|
|
ARG 3 program
|
2022-02-16 11:58:50 -05:00
|
|
|
METHOD method_34435 getVertexFormat ()Lnet/minecraft/class_293;
|
2022-11-02 10:30:38 -04:00
|
|
|
METHOD method_35665 draw ()V
|
2022-09-03 13:01:33 -04:00
|
|
|
COMMENT Draws the contents in this vertex buffer.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The caller of this method must {@linkplain #bind bind} this vertex
|
|
|
|
COMMENT buffer before calling this method.
|
|
|
|
COMMENT
|
2022-11-16 07:53:09 -05:00
|
|
|
COMMENT <p>Unlike {@link #draw(Matrix4f, Matrix4f, ShaderProgram)}, the caller
|
|
|
|
COMMENT of this method must manually bind a shader program before calling this
|
|
|
|
COMMENT method.
|
2022-11-02 10:30:38 -04:00
|
|
|
METHOD method_43442 uploadVertexBuffer (Lnet/minecraft/class_287$class_4574;Ljava/nio/ByteBuffer;)Lnet/minecraft/class_293;
|
2022-04-27 12:40:20 -04:00
|
|
|
ARG 1 parameters
|
2022-11-02 10:30:38 -04:00
|
|
|
ARG 2 vertexBuffer
|
|
|
|
METHOD method_43443 uploadIndexBuffer (Lnet/minecraft/class_287$class_4574;Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;
|
2022-04-27 12:40:20 -04:00
|
|
|
ARG 1 parameters
|
2022-11-02 10:30:38 -04:00
|
|
|
ARG 2 indexBuffer
|
2022-04-27 12:40:20 -04:00
|
|
|
METHOD method_43444 isClosed ()Z
|
2022-05-01 12:50:50 -04:00
|
|
|
METHOD method_43445 getIndexType ()Lnet/minecraft/class_293$class_5595;
|
2023-05-05 23:28:33 -04:00
|
|
|
CLASS class_8555 Usage
|
|
|
|
FIELD field_44795 id I
|
|
|
|
METHOD <init> (Ljava/lang/String;II)V
|
|
|
|
ARG 3 id
|