Package com.raylib
Class Material
java.lang.Object
com.raylib.Material
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionMaterial()
Construct with auto memory allocator and fields initialized to zero.Material
(Shader shader, MaterialMap maps, MemorySegment params) Construct with auto memory allocator and fields initialized as specifiedMaterial
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectMaterial
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedMaterial
(SegmentAllocator arena, Shader shader, MaterialMap maps, MemorySegment params) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic Material
allocateArray
(long elementCount) Allocate an array of Materialstatic Material
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Materialboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) getMaps()
Material maps array (MAX_MATERIAL_MAPS)Material generic parameters (if required)Material shaderint
hashCode()
setMaps
(MaterialMap value) Material maps array (MAX_MATERIAL_MAPS)setParams
(MemorySegment value) Material generic parameters (if required)Material shader
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
Material
public Material()Construct with auto memory allocator and fields initialized to zero. -
Material
Construct with your owm memory allocator and fields not initialized -
Material
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
Material
Construct with auto memory allocator and fields initialized as specified- Parameters:
shader
- Material shadermaps
- Material maps array (MAX_MATERIAL_MAPS)params
- Material generic parameters (if required)
-
Material
Construct with your own memory allocator and fields initialized as specified- Parameters:
shader
- Material shadermaps
- Material maps array (MAX_MATERIAL_MAPS)params
- Material generic parameters (if required)
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of Material -
allocateArray
Allocate an array of Material -
getShader
Material shader -
setShader
-
getMaps
Material maps array (MAX_MATERIAL_MAPS) -
setMaps
Material maps array (MAX_MATERIAL_MAPS) -
getParams
Material generic parameters (if required) -
setParams
Material generic parameters (if required)
-