Class rlDrawCall

java.lang.Object
com.raylib.rlDrawCall

public class rlDrawCall extends Object
of those state-change happens (this is done in core module)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The native FFI MemorySegment that holds the data this object wraps.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct with auto memory allocator and fields initialized to zero.
    rlDrawCall(int mode, int vertexCount, int vertexAlignment, int textureId)
    Construct with auto memory allocator and fields initialized as specified
    rlDrawCall(MemorySegment memorySegment)
    Construct by wrapping around an already allocated MemorySegment, perhaps from another object
    Construct with your owm memory allocator and fields not initialized
    rlDrawCall(SegmentAllocator arena, int mode, int vertexCount, int vertexAlignment, int textureId)
    Construct with your own memory allocator and fields initialized as specified
  • Method Summary

    Modifier and Type
    Method
    Description
    static rlDrawCall
    allocateArray(long elementCount)
    Allocate an array of rlDrawCall
    static rlDrawCall
    allocateArray(long elementCount, SegmentAllocator allocator)
    Allocate an array of rlDrawCall
    boolean
    Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
    getArrayElement(int index)
     
    int
    Drawing mode: LINES, TRIANGLES, QUADS
    int
    Texture id to be used on the draw -> Use to create new draw call if changes
    int
    Number of vertex required for index alignment (LINES, TRIANGLES)
    int
    Number of vertex of the draw
    int
     
    int
    Drawing mode: LINES, TRIANGLES, QUADS
    mode(int value)
    Drawing mode: LINES, TRIANGLES, QUADS
    void
    setMode(int value)
    Drawing mode: LINES, TRIANGLES, QUADS
    void
    setTextureId(int value)
    Texture id to be used on the draw -> Use to create new draw call if changes
    void
    setVertexAlignment(int value)
    Number of vertex required for index alignment (LINES, TRIANGLES)
    void
    setVertexCount(int value)
    Number of vertex of the draw
    int
    Texture id to be used on the draw -> Use to create new draw call if changes
    textureId(int value)
    Texture id to be used on the draw -> Use to create new draw call if changes
    int
    Number of vertex required for index alignment (LINES, TRIANGLES)
    vertexAlignment(int value)
    Number of vertex required for index alignment (LINES, TRIANGLES)
    int
    Number of vertex of the draw
    vertexCount(int value)
    Number of vertex of the draw

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • memorySegment

      public final MemorySegment memorySegment
      The native FFI MemorySegment that holds the data this object wraps.
  • Constructor Details

    • rlDrawCall

      public rlDrawCall()
      Construct with auto memory allocator and fields initialized to zero.
    • rlDrawCall

      public rlDrawCall(SegmentAllocator arena)
      Construct with your owm memory allocator and fields not initialized
    • rlDrawCall

      public rlDrawCall(MemorySegment memorySegment)
      Construct by wrapping around an already allocated MemorySegment, perhaps from another object
    • rlDrawCall

      public rlDrawCall(int mode, int vertexCount, int vertexAlignment, int textureId)
      Construct with auto memory allocator and fields initialized as specified
      Parameters:
      mode - Drawing mode: LINES, TRIANGLES, QUADS
      vertexCount - Number of vertex of the draw
      vertexAlignment - Number of vertex required for index alignment (LINES, TRIANGLES)
      textureId - Texture id to be used on the draw -> Use to create new draw call if changes
    • rlDrawCall

      public rlDrawCall(SegmentAllocator arena, int mode, int vertexCount, int vertexAlignment, int textureId)
      Construct with your own memory allocator and fields initialized as specified
      Parameters:
      mode - Drawing mode: LINES, TRIANGLES, QUADS
      vertexCount - Number of vertex of the draw
      vertexAlignment - Number of vertex required for index alignment (LINES, TRIANGLES)
      textureId - Texture id to be used on the draw -> Use to create new draw call if changes
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getArrayElement

      public rlDrawCall getArrayElement(int index)
    • allocateArray

      public static rlDrawCall allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of rlDrawCall
    • allocateArray

      public static rlDrawCall allocateArray(long elementCount)
      Allocate an array of rlDrawCall
    • getMode

      public int getMode()
      Drawing mode: LINES, TRIANGLES, QUADS
    • setMode

      public void setMode(int value)
      Drawing mode: LINES, TRIANGLES, QUADS
    • mode

      public int mode()
      Drawing mode: LINES, TRIANGLES, QUADS
    • mode

      public rlDrawCall mode(int value)
      Drawing mode: LINES, TRIANGLES, QUADS
    • getVertexCount

      public int getVertexCount()
      Number of vertex of the draw
    • setVertexCount

      public void setVertexCount(int value)
      Number of vertex of the draw
    • vertexCount

      public int vertexCount()
      Number of vertex of the draw
    • vertexCount

      public rlDrawCall vertexCount(int value)
      Number of vertex of the draw
    • getVertexAlignment

      public int getVertexAlignment()
      Number of vertex required for index alignment (LINES, TRIANGLES)
    • setVertexAlignment

      public void setVertexAlignment(int value)
      Number of vertex required for index alignment (LINES, TRIANGLES)
    • vertexAlignment

      public int vertexAlignment()
      Number of vertex required for index alignment (LINES, TRIANGLES)
    • vertexAlignment

      public rlDrawCall vertexAlignment(int value)
      Number of vertex required for index alignment (LINES, TRIANGLES)
    • getTextureId

      public int getTextureId()
      Texture id to be used on the draw -> Use to create new draw call if changes
    • setTextureId

      public void setTextureId(int value)
      Texture id to be used on the draw -> Use to create new draw call if changes
    • textureId

      public int textureId()
      Texture id to be used on the draw -> Use to create new draw call if changes
    • textureId

      public rlDrawCall textureId(int value)
      Texture id to be used on the draw -> Use to create new draw call if changes