Package com.mojang.blaze3d.opengl
Class BufferStorage.Immutable
java.lang.Object
com.mojang.blaze3d.opengl.BufferStorage
com.mojang.blaze3d.opengl.BufferStorage.Immutable
- Enclosing class:
BufferStorage
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mojang.blaze3d.opengl.BufferStorage
BufferStorage.Immutable, BufferStorage.Mutable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBuffer
(DirectStateAccess pDirectStateAccess, Supplier<String> pLabel, int pUsage, int pSize) createBuffer
(DirectStateAccess pDirectStateAccess, Supplier<String> pLabel, int pUsage, ByteBuffer pData) mapBuffer
(DirectStateAccess pDirectStateAccess, GlBuffer pBuffer, int pOffset, int pSize, int pUsage) private ByteBuffer
tryMapBufferPersistent
(DirectStateAccess pDirectStateAccess, int pUsage, int pHandle, int pSize) Methods inherited from class com.mojang.blaze3d.opengl.BufferStorage
create
-
Constructor Details
-
Immutable
Immutable()
-
-
Method Details
-
createBuffer
public GlBuffer createBuffer(DirectStateAccess pDirectStateAccess, @Nullable Supplier<String> pLabel, int pUsage, int pSize) - Specified by:
createBuffer
in classBufferStorage
-
createBuffer
public GlBuffer createBuffer(DirectStateAccess pDirectStateAccess, @Nullable Supplier<String> pLabel, int pUsage, ByteBuffer pData) - Specified by:
createBuffer
in classBufferStorage
-
tryMapBufferPersistent
@Nullable private ByteBuffer tryMapBufferPersistent(DirectStateAccess pDirectStateAccess, int pUsage, int pHandle, int pSize) -
mapBuffer
public GlBuffer.GlMappedView mapBuffer(DirectStateAccess pDirectStateAccess, GlBuffer pBuffer, int pOffset, int pSize, int pUsage) - Specified by:
mapBuffer
in classBufferStorage
-