Class rlDrawCall
java.lang.Object
com.raylib.rlDrawCall
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct 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 specifiedrlDrawCall
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectrlDrawCall
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedrlDrawCall
(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 TypeMethodDescriptionstatic rlDrawCall
allocateArray
(long elementCount) Allocate an array of rlDrawCallstatic rlDrawCall
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of rlDrawCallboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) int
getMode()
Drawing mode: LINES, TRIANGLES, QUADSint
Texture id to be used on the draw -> Use to create new draw call if changesint
Number of vertex required for index alignment (LINES, TRIANGLES)int
Number of vertex of the drawint
hashCode()
int
mode()
Drawing mode: LINES, TRIANGLES, QUADSmode
(int value) Drawing mode: LINES, TRIANGLES, QUADSvoid
setMode
(int value) Drawing mode: LINES, TRIANGLES, QUADSvoid
setTextureId
(int value) Texture id to be used on the draw -> Use to create new draw call if changesvoid
setVertexAlignment
(int value) Number of vertex required for index alignment (LINES, TRIANGLES)void
setVertexCount
(int value) Number of vertex of the drawint
Texture id to be used on the draw -> Use to create new draw call if changestextureId
(int value) Texture id to be used on the draw -> Use to create new draw call if changesint
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 drawvertexCount
(int value) Number of vertex of the draw
-
Field Details
-
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
Construct with your owm memory allocator and fields not initialized -
rlDrawCall
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, QUADSvertexCount
- Number of vertex of the drawvertexAlignment
- 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, QUADSvertexCount
- Number of vertex of the drawvertexAlignment
- 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
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of rlDrawCall -
allocateArray
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
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
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
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
Texture id to be used on the draw -> Use to create new draw call if changes
-