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:
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 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
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
Returns the base vertex.baseVertex
(int baseVertex) Sets the base vertex.baseVertex
(long index, int baseVertex) Sets the base vertex at the given index.int
baseVertexAt
(long index) Gets the base vertex 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
Returns the first index.firstIndex
(int firstIndex) Sets the first index.firstIndex
(long index, int firstIndex) Sets the first index at the given index.int
firstIndexAt
(long index) Gets the first index 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.DrawElementsIndirectCommand
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
-
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:DrawElementsIndirectCommand
Sets the count.- Overrides:
count
in classDrawElementsIndirectCommand
- Parameters:
count
- the count- Returns:
- this
-
primCount
Description copied from class:DrawElementsIndirectCommand
Sets the primitive count.- Overrides:
primCount
in classDrawElementsIndirectCommand
- Parameters:
primCount
- the primitive count- Returns:
- this
-
firstIndex
Description copied from class:DrawElementsIndirectCommand
Sets the first index.- Overrides:
firstIndex
in classDrawElementsIndirectCommand
- Parameters:
firstIndex
- the first index- Returns:
- this
-
baseVertex
Description copied from class:DrawElementsIndirectCommand
Sets the base vertex.- Overrides:
baseVertex
in classDrawElementsIndirectCommand
- Parameters:
baseVertex
- the base vertex- Returns:
- this
-
baseInstance
Description copied from class:DrawElementsIndirectCommand
Sets the base instance.- Overrides:
baseInstance
in 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:DrawElementsIndirectCommand
Returns the count.- Overrides:
count
in classDrawElementsIndirectCommand
- Returns:
- the count
-
primCount
public int primCount()Description copied from class:DrawElementsIndirectCommand
Returns the primitive count.- Overrides:
primCount
in classDrawElementsIndirectCommand
- Returns:
- the primitive count
-
firstIndex
public int firstIndex()Description copied from class:DrawElementsIndirectCommand
Returns the first index.- Overrides:
firstIndex
in classDrawElementsIndirectCommand
- Returns:
- the first index
-
baseVertex
public int baseVertex()Description copied from class:DrawElementsIndirectCommand
Returns the base vertex.- Overrides:
baseVertex
in classDrawElementsIndirectCommand
- Returns:
- the base vertex
-
baseInstance
public int baseInstance()Description copied from class:DrawElementsIndirectCommand
Returns the base instance.- Overrides:
baseInstance
in classDrawElementsIndirectCommand
- Returns:
- the base instance
-
Buffer
when preview features are enabled.