Class DrawArraysIndirectCommand

java.lang.Object
overrungl.Pointer
overrungl.Struct
overrungl.opengl.DrawArraysIndirectCommand
All Implemented Interfaces:
Addressable
Direct Known Subclasses:
DrawArraysIndirectCommand.Buffer

public class DrawArraysIndirectCommand extends Struct
DrawArraysIndirectCommand relies on preview features of the Java platform:
Programs can only use DrawArraysIndirectCommand when preview features are enabled.
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
  • Field Details

  • Constructor Details

    • DrawArraysIndirectCommand

      public DrawArraysIndirectCommand(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator)
      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

      public static DrawArraysIndirectCommand create(SegmentAllocatorPREVIEW allocator)
      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 allocator
      count - the count
      Returns:
      the instance
    • count

      public DrawArraysIndirectCommand count(int count)
      Sets the count.
      Parameters:
      count - the count
      Returns:
      this
    • primCount

      public DrawArraysIndirectCommand primCount(int primCount)
      Sets the primitive count.
      Parameters:
      primCount - the primitive count
      Returns:
      this
    • first

      public DrawArraysIndirectCommand first(int first)
      Sets the first.
      Parameters:
      first - the first
      Returns:
      this
    • baseInstance

      public DrawArraysIndirectCommand baseInstance(int 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