Class BufferStorage.Immutable
java.lang.Object
com.mojang.blaze3d.opengl.BufferStorage
com.mojang.blaze3d.opengl.BufferStorage.Immutable
- Enclosing class:
BufferStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBuffer(DirectStateAccess dsa, @Nullable Supplier<String> label, int usage, long size) createBuffer(DirectStateAccess dsa, @Nullable Supplier<String> label, int usage, ByteBuffer data) mapBuffer(DirectStateAccess dsa, GlBuffer buffer, long offset, long length, int flags) private @Nullable ByteBuffertryMapBufferPersistent(DirectStateAccess dsa, int usage, int buffer, long size) Methods inherited from class BufferStorage
create
-
Constructor Details
-
Immutable
private Immutable()
-
-
Method Details
-
createBuffer
public GlBuffer createBuffer(DirectStateAccess dsa, @Nullable Supplier<String> label, int usage, long size) - Specified by:
createBufferin classBufferStorage
-
createBuffer
public GlBuffer createBuffer(DirectStateAccess dsa, @Nullable Supplier<String> label, int usage, ByteBuffer data) - Specified by:
createBufferin classBufferStorage
-
tryMapBufferPersistent
private @Nullable ByteBuffer tryMapBufferPersistent(DirectStateAccess dsa, int usage, int buffer, long size) -
mapBuffer
public GlBuffer.GlMappedView mapBuffer(DirectStateAccess dsa, GlBuffer buffer, long offset, long length, int flags) - Specified by:
mapBufferin classBufferStorage
-