Class VertexArray
java.lang.Object
com.mojang.renderpearl.backend.opengl.VertexArray
- All Implemented Interfaces:
UncheckedAutoCloseable, AutoCloseable
- Direct Known Subclasses:
VertexArray.Emulated, VertexArray.Separate
public abstract sealed class VertexArray
extends Object
implements UncheckedAutoCloseable
permits VertexArray.Emulated, VertexArray.Separate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbind(@Nullable GpuBufferSlice[] vertexBuffers) voidclose()createSource(org.lwjgl.opengl.GLCapabilities capabilities, Set<String> enabledExtensions)
-
Field Details
-
vertexArrayId
protected final int vertexArrayId
-
-
Constructor Details
-
VertexArray
private VertexArray()
-
-
Method Details
-
createSource
public static BiFunction<GlProgram, BackendRenderPipeline.CreateInfo, VertexArray> createSource(org.lwjgl.opengl.GLCapabilities capabilities, Set<String> enabledExtensions) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceUncheckedAutoCloseable
-
bind
-