mirror of https://github.com/FabricMC/yarn.git
56 lines
2.4 KiB
Plaintext
56 lines
2.4 KiB
Plaintext
CLASS net/minecraft/class_287 net/minecraft/client/render/BufferBuilder
|
|
COMMENT Builds a buffer of primitives and optionally sorts them by the distance
|
|
COMMENT from the camera.
|
|
COMMENT
|
|
COMMENT <p>This builder can sort quad primitives. It sorts them by the distance
|
|
COMMENT between the camera position and the center of the quad. Sorting is
|
|
COMMENT required when drawing translucent objects because they have to be drawn
|
|
COMMENT in back-to-front order. See
|
|
COMMENT <a href="https://www.khronos.org/opengl/wiki/Transparency_Sorting">
|
|
COMMENT Transparency Sorting - OpenGL Wiki</a>.
|
|
COMMENT
|
|
COMMENT <p>For {@link VertexFormat.DrawMode#LINES LINES} and {@link
|
|
COMMENT VertexFormat.DrawMode#LINE_STRIP LINE_STRIP} draw modes, this builder
|
|
COMMENT duplicates every vertex in a line to produce a quad with zero area. See
|
|
COMMENT {@link GameRenderer#getRenderTypeLinesProgram}.
|
|
FIELD field_1554 vertexCount I
|
|
FIELD field_1556 building Z
|
|
FIELD field_1565 format Lnet/minecraft/class_293;
|
|
FIELD field_21594 canSkipElementChecks Z
|
|
COMMENT Whether this builder is aware of the vertex format and can skip checks
|
|
COMMENT for the current target element while building a vertex in {@link
|
|
COMMENT #vertex(float, float, float, float, float, float, float, float, float, int, int, float, float, float)}.
|
|
FIELD field_21595 hasOverlay Z
|
|
FIELD field_52070 LITTLE_ENDIAN Z
|
|
FIELD field_52071 allocator Lnet/minecraft/class_9799;
|
|
FIELD field_52072 vertexPointer J
|
|
FIELD field_52073 drawMode Lnet/minecraft/class_293$class_5596;
|
|
FIELD field_52074 vertexSizeByte I
|
|
FIELD field_52075 requiredMask I
|
|
FIELD field_52076 offsetsByElementId [I
|
|
FIELD field_52077 currentMask I
|
|
METHOD <init> (Lnet/minecraft/class_9799;Lnet/minecraft/class_293$class_5596;Lnet/minecraft/class_293;)V
|
|
ARG 1 allocator
|
|
ARG 2 drawMode
|
|
ARG 3 format
|
|
METHOD method_60794 endNullable ()Lnet/minecraft/class_9801;
|
|
METHOD method_60795 floatToByte (F)B
|
|
ARG 0 f
|
|
METHOD method_60797 putColor (JI)V
|
|
ARG 0 pointer
|
|
ARG 2 argb
|
|
METHOD method_60798 beginElement (Lnet/minecraft/class_296;)J
|
|
ARG 1 element
|
|
METHOD method_60799 putUv (SSLnet/minecraft/class_296;)Lnet/minecraft/class_4588;
|
|
ARG 1 u
|
|
ARG 2 v
|
|
ARG 3 element
|
|
METHOD method_60800 end ()Lnet/minecraft/class_9801;
|
|
METHOD method_60801 putInt (JI)V
|
|
ARG 0 pointer
|
|
ARG 2 i
|
|
METHOD method_60802 ensureBuilding ()V
|
|
METHOD method_60804 build ()Lnet/minecraft/class_9801;
|
|
METHOD method_60805 beginVertex ()J
|
|
METHOD method_60806 endVertex ()V
|