java.lang.Object
overrungl.Pointer
overrungl.Struct
overrungl.opengl.DrawElementsIndirectCommand
overrungl.opengl.DrawElementsIndirectCommand.Buffer
- All Implemented Interfaces:
Addressable,ArrayPointer
- Enclosing class:
DrawElementsIndirectCommand
public static class DrawElementsIndirectCommand.Buffer
extends DrawElementsIndirectCommand
implements ArrayPointer
Buffer relies on preview features of the Java platform:
Bufferrefers to one or more preview APIs:MemorySegment,SegmentAllocator.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The OpenGL 4.2 draw elements indirect commands.
- Since:
- 0.1.0
- Author:
- squid233
-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.opengl.DrawElementsIndirectCommand
DrawElementsIndirectCommand.Buffer -
Field Summary
Fields inherited from class overrungl.opengl.DrawElementsIndirectCommand
LAYOUTFields inherited from class overrungl.Pointer
address, allocator, managedSegment -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, long elementCount) Create the pointer instance. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the base instance.baseInstance(int baseInstance) Sets the base instance.baseInstance(long index, int baseInstance) Sets the base instance at the given index.intbaseInstanceAt(long index) Gets the base instance at the given index.intReturns the base vertex.baseVertex(int baseVertex) Sets the base vertex.baseVertex(long index, int baseVertex) Sets the base vertex at the given index.intbaseVertexAt(long index) Gets the base vertex at the given index.intcount()Returns the count.count(int count) Sets the count.count(long index, int count) Sets the count at the given index.intcountAt(long index) Gets the count at the given index.intReturns the first index.firstIndex(int firstIndex) Sets the first index.firstIndex(long index, int firstIndex) Sets the first index at the given index.intfirstIndexAt(long index) Gets the first index at the given index.intReturns the primitive count.primCount(int primCount) Sets the primitive count.primCount(long index, int primCount) Sets the primitive count at the given index.intprimCountAt(long index) Gets the primitive count at the given index.Methods inherited from class overrungl.opengl.DrawElementsIndirectCommand
create, createMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overrungl.Addressable
addressMethods inherited from interface overrungl.ArrayPointer
elementCount
-
Constructor Details
-
Buffer
Create the pointer instance.- Parameters:
address- the address.allocator- the allocator of this address.elementCount- the element count
-
-
Method Details
-
count
Sets the count at the given index.- Parameters:
index- the indexcount- the count- Returns:
- this
-
primCount
Sets the primitive count at the given index.- Parameters:
index- the indexprimCount- the primitive count- Returns:
- this
-
firstIndex
Sets the first index at the given index.- Parameters:
index- the indexfirstIndex- the first index- Returns:
- this
-
baseVertex
Sets the base vertex at the given index.- Parameters:
index- the indexbaseVertex- the base vertex- Returns:
- this
-
baseInstance
Sets the base instance at the given index.- Parameters:
index- the indexbaseInstance- the base instance- Returns:
- this
-
count
Description copied from class:DrawElementsIndirectCommandSets the count.- Overrides:
countin classDrawElementsIndirectCommand- Parameters:
count- the count- Returns:
- this
-
primCount
Description copied from class:DrawElementsIndirectCommandSets the primitive count.- Overrides:
primCountin classDrawElementsIndirectCommand- Parameters:
primCount- the primitive count- Returns:
- this
-
firstIndex
Description copied from class:DrawElementsIndirectCommandSets the first index.- Overrides:
firstIndexin classDrawElementsIndirectCommand- Parameters:
firstIndex- the first index- Returns:
- this
-
baseVertex
Description copied from class:DrawElementsIndirectCommandSets the base vertex.- Overrides:
baseVertexin classDrawElementsIndirectCommand- Parameters:
baseVertex- the base vertex- Returns:
- this
-
baseInstance
Description copied from class:DrawElementsIndirectCommandSets the base instance.- Overrides:
baseInstancein classDrawElementsIndirectCommand- Parameters:
baseInstance- the base instance- Returns:
- this
-
countAt
public int countAt(long index) Gets the count at the given index.- Parameters:
index- the index- Returns:
- the count
-
primCountAt
public int primCountAt(long index) Gets the primitive count at the given index.- Parameters:
index- the index- Returns:
- the primitive count
-
firstIndexAt
public int firstIndexAt(long index) Gets the first index at the given index.- Parameters:
index- the index- Returns:
- the first index
-
baseVertexAt
public int baseVertexAt(long index) Gets the base vertex at the given index.- Parameters:
index- the index- Returns:
- the base vertex
-
baseInstanceAt
public int baseInstanceAt(long index) Gets the base instance at the given index.- Parameters:
index- the index- Returns:
- the base instance
-
count
public int count()Description copied from class:DrawElementsIndirectCommandReturns the count.- Overrides:
countin classDrawElementsIndirectCommand- Returns:
- the count
-
primCount
public int primCount()Description copied from class:DrawElementsIndirectCommandReturns the primitive count.- Overrides:
primCountin classDrawElementsIndirectCommand- Returns:
- the primitive count
-
firstIndex
public int firstIndex()Description copied from class:DrawElementsIndirectCommandReturns the first index.- Overrides:
firstIndexin classDrawElementsIndirectCommand- Returns:
- the first index
-
baseVertex
public int baseVertex()Description copied from class:DrawElementsIndirectCommandReturns the base vertex.- Overrides:
baseVertexin classDrawElementsIndirectCommand- Returns:
- the base vertex
-
baseInstance
public int baseInstance()Description copied from class:DrawElementsIndirectCommandReturns the base instance.- Overrides:
baseInstancein classDrawElementsIndirectCommand- Returns:
- the base instance
-
Bufferwhen preview features are enabled.