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:
Buffer
refers 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
LAYOUT
Fields inherited from class overrungl.Pointer
address, allocator, managedSegment
-
Constructor Summary
ConstructorDescriptionBuffer
(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, long elementCount) Create the pointer instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the base instance.baseInstance
(int baseInstance) Sets the base instance.baseInstance
(long index, int baseInstance) Sets the base instance at the given index.int
baseInstanceAt
(long index) Gets the base instance at the given index.int
count()
Returns the count.count
(int count) Sets the count.count
(long index, int count) Sets the count at the given index.int
countAt
(long index) Gets the count at the given index.int
first()
Returns the first.first
(int first) Sets the first.first
(long index, int first) Sets the first at the given index.int
firstAt
(long index) Gets the first at the given index.int
Returns the primitive count.primCount
(int primCount) Sets the primitive count.primCount
(long index, int primCount) Sets the primitive count at the given index.int
primCountAt
(long index) Gets the primitive count at the given index.Methods inherited from class overrungl.opengl.DrawArraysIndirectCommand
create, create
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface overrungl.Addressable
address
Methods 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:DrawArraysIndirectCommand
Sets the count.- Overrides:
count
in classDrawArraysIndirectCommand
- Parameters:
count
- the count- Returns:
- this
-
primCount
Description copied from class:DrawArraysIndirectCommand
Sets the primitive count.- Overrides:
primCount
in classDrawArraysIndirectCommand
- Parameters:
primCount
- the primitive count- Returns:
- this
-
first
Description copied from class:DrawArraysIndirectCommand
Sets the first.- Overrides:
first
in classDrawArraysIndirectCommand
- Parameters:
first
- the first- Returns:
- this
-
baseInstance
Description copied from class:DrawArraysIndirectCommand
Sets the base instance.- Overrides:
baseInstance
in 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:DrawArraysIndirectCommand
Returns the count.- Overrides:
count
in classDrawArraysIndirectCommand
- Returns:
- the count
-
primCount
public int primCount()Description copied from class:DrawArraysIndirectCommand
Returns the primitive count.- Overrides:
primCount
in classDrawArraysIndirectCommand
- Returns:
- the primitive count
-
first
public int first()Description copied from class:DrawArraysIndirectCommand
Returns the first.- Overrides:
first
in classDrawArraysIndirectCommand
- Returns:
- the first
-
baseInstance
public int baseInstance()Description copied from class:DrawArraysIndirectCommand
Returns the base instance.- Overrides:
baseInstance
in classDrawArraysIndirectCommand
- Returns:
- the base instance
-
Buffer
when preview features are enabled.