Class Material
java.lang.Object
com.raylib.Material
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegmentThe 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, float[] 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, float[] params) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic MaterialallocateArray(long elementCount) Allocate an array of Materialstatic MaterialallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of MaterialbooleanEquality 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)float[]Material generic parameters (if required)Material shaderinthashCode()maps()Material maps array (MAX_MATERIAL_MAPS)maps(MaterialMap value) Material maps array (MAX_MATERIAL_MAPS)float[]params()Material generic parameters (if required)params(float[] value) Material generic parameters (if required)voidsetMaps(MaterialMap value) Material maps array (MAX_MATERIAL_MAPS)voidsetParams(float[] value) Material generic parameters (if required)voidMaterial shadershader()Material shaderMaterial 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
Material shader -
shader
Material shader -
shader
-
getMaps
Material maps array (MAX_MATERIAL_MAPS) -
setMaps
Material maps array (MAX_MATERIAL_MAPS) -
maps
Material maps array (MAX_MATERIAL_MAPS) -
maps
Material maps array (MAX_MATERIAL_MAPS) -
getParams
public float[] getParams()Material generic parameters (if required) -
setParams
public void setParams(float[] value) Material generic parameters (if required) -
params
public float[] params()Material generic parameters (if required) -
params
Material generic parameters (if required)
-