java.lang.Object
overrungl.Pointer
overrungl.Struct
overrungl.opengl.DrawArraysIndirectCommand
overrungl.opengl.DrawArraysIndirectCommand.Buffer
- All Implemented Interfaces:
Addressable,ArrayPointer
- Enclosing class:
DrawArraysIndirectCommand
public static class DrawArraysIndirectCommand.Buffer
extends DrawArraysIndirectCommand
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 arrays indirect commands.
- Since:
- 0.1.0
- Author:
- squid233
-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.opengl.DrawArraysIndirectCommand
DrawArraysIndirectCommand.Buffer -
Field Summary
Fields inherited from class overrungl.opengl.DrawArraysIndirectCommand
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.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.intfirst()Returns the first.first(int first) Sets the first.first(long index, int first) Sets the first at the given index.intfirstAt(long index) Gets the first 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.DrawArraysIndirectCommand
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
-
first
Sets the first at the given index.- Parameters:
index- the indexfirst- the first- 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:DrawArraysIndirectCommandSets the count.- Overrides:
countin classDrawArraysIndirectCommand- Parameters:
count- the count- Returns:
- this
-
primCount
Description copied from class:DrawArraysIndirectCommandSets the primitive count.- Overrides:
primCountin classDrawArraysIndirectCommand- Parameters:
primCount- the primitive count- Returns:
- this
-
first
Description copied from class:DrawArraysIndirectCommandSets the first.- Overrides:
firstin classDrawArraysIndirectCommand- Parameters:
first- the first- Returns:
- this
-
baseInstance
Description copied from class:DrawArraysIndirectCommandSets the base instance.- Overrides:
baseInstancein classDrawArraysIndirectCommand- 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
-
firstAt
public int firstAt(long index) Gets the first at the given index.- Parameters:
index- the index- Returns:
- the first
-
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:DrawArraysIndirectCommandReturns the count.- Overrides:
countin classDrawArraysIndirectCommand- Returns:
- the count
-
primCount
public int primCount()Description copied from class:DrawArraysIndirectCommandReturns the primitive count.- Overrides:
primCountin classDrawArraysIndirectCommand- Returns:
- the primitive count
-
first
public int first()Description copied from class:DrawArraysIndirectCommandReturns the first.- Overrides:
firstin classDrawArraysIndirectCommand- Returns:
- the first
-
baseInstance
public int baseInstance()Description copied from class:DrawArraysIndirectCommandReturns the base instance.- Overrides:
baseInstancein classDrawArraysIndirectCommand- Returns:
- the base instance
-
Bufferwhen preview features are enabled.