Class GL42DrawArraysInstancedBaseInstanceLayeredRenderBuffer
java.lang.Object
dev.pfaff.altargui.render.LayeredRenderBuffer
dev.pfaff.altargui.render.GL42DrawArraysInstancedBaseInstanceLayeredRenderBuffer
- All Implemented Interfaces:
AutoCloseable
public final class GL42DrawArraysInstancedBaseInstanceLayeredRenderBuffer
extends LayeredRenderBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.pfaff.altargui.render.LayeredRenderBuffer
LayeredRenderBuffer.Drawer
-
Field Summary
Fields inherited from class dev.pfaff.altargui.render.LayeredRenderBuffer
instanceLayouts, instancesBuffer, programs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
drawEntry
(MemorySegment ms, int programId, Program program) The VAO will be bound by the caller.protected VAO
getVAOForEntry
(MemorySegment ms, int programId) protected void
protected void
putDataForEntry
(MemorySegment ms, int programId, int start, int end) Methods inherited from class dev.pfaff.altargui.render.LayeredRenderBuffer
beginUploading, byteCount, currentProgram, drawer, endCurrentLayer, finishUploading, iSpecUpload, upload
-
Constructor Details
-
GL42DrawArraysInstancedBaseInstanceLayeredRenderBuffer
public GL42DrawArraysInstancedBaseInstanceLayeredRenderBuffer()
-
-
Method Details
-
onRecreate
protected void onRecreate()- Specified by:
onRecreate
in classLayeredRenderBuffer
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classLayeredRenderBuffer
-
putDataForEntry
- Specified by:
putDataForEntry
in classLayeredRenderBuffer
- Parameters:
ms
- a buffer of 3 integers. Store whatever you need here.programId
- the shader program used for the layer.start
- the offset in units of instances of the start of the program's vertex data.end
- the offset in units of instances of the end of the program's vertex data.
-
getVAOForEntry
- Specified by:
getVAOForEntry
in classLayeredRenderBuffer
- Parameters:
ms
- a buffer of 3 integers.programId
-
-
drawEntry
Description copied from class:LayeredRenderBuffer
The VAO will be bound by the caller.- Specified by:
drawEntry
in classLayeredRenderBuffer
- Parameters:
ms
- a buffer of 3 integers.
-