java.lang.Object
overrungl.Pointer
overrungl.Struct
overrungl.opengl.DrawArraysIndirectCommand
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
DrawArraysIndirectCommand.Buffer
DrawArraysIndirectCommand
relies on preview features of the Java platform:
DrawArraysIndirectCommand
refers to one or more preview APIs:MemoryLayout
,MemorySegment
,SegmentAllocator
,StructLayout
.
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 command.
Layout
struct DrawArraysIndirectCommand {
unsigned int count
;
unsigned int primCount
;
unsigned int first
;
unsigned int baseInstance
;
}
- Since:
- 0.1.0
- Author:
- squid233
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The OpenGL 4.2 draw arrays indirect commands. -
Field Summary
Fields inherited from class overrungl.Pointer
address, allocator, managedSegment
-
Constructor Summary
ModifierConstructorDescriptionDrawArraysIndirectCommand
(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator) Create the pointer instance.protected
DrawArraysIndirectCommand
(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, MemoryLayoutPREVIEW layout) Creates a struct instance with the given memory layout. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the base instance.baseInstance
(int baseInstance) Sets the base instance.int
count()
Returns the count.count
(int count) Sets the count.static DrawArraysIndirectCommand
create
(SegmentAllocatorPREVIEW allocator) Creates a command instance with the given allocator.create
(SegmentAllocatorPREVIEW allocator, long count) Creates a command instance with the given allocator and count.int
first()
Returns the first.first
(int first) Sets the first.int
Returns the primitive count.primCount
(int primCount) Sets the primitive count.
-
Field Details
-
LAYOUT
The struct layout.
-
-
Constructor Details
-
DrawArraysIndirectCommand
Create the pointer instance.- Parameters:
address
- the address.allocator
- the allocator of this address.
-
DrawArraysIndirectCommand
protected DrawArraysIndirectCommand(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, MemoryLayoutPREVIEW layout) Creates a struct instance with the given memory layout.- Parameters:
address
- the address.allocator
- the allocator of this address.layout
- the memory layout of this struct.
-
-
Method Details
-
create
Creates a command instance with the given allocator.- Parameters:
allocator
- the allocator- Returns:
- the instance
-
create
public static DrawArraysIndirectCommand.Buffer create(SegmentAllocatorPREVIEW allocator, long count) Creates a command instance with the given allocator and count.- Parameters:
allocator
- the allocatorcount
- the count- Returns:
- the instance
-
count
Sets the count.- Parameters:
count
- the count- Returns:
- this
-
primCount
Sets the primitive count.- Parameters:
primCount
- the primitive count- Returns:
- this
-
first
Sets the first.- Parameters:
first
- the first- Returns:
- this
-
baseInstance
Sets the base instance.- Parameters:
baseInstance
- the base instance- Returns:
- this
-
count
public int count()Returns the count.- Returns:
- the count
-
primCount
public int primCount()Returns the primitive count.- Returns:
- the primitive count
-
first
public int first()Returns the first.- Returns:
- the first
-
baseInstance
public int baseInstance()Returns the base instance.- Returns:
- the base instance
-
DrawArraysIndirectCommand
when preview features are enabled.