Class MaterialMap
java.lang.Object
com.raylib.MaterialMap
-
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.MaterialMap
(Texture texture, Color color, float value) Construct with auto memory allocator and fields initialized as specifiedMaterialMap
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectMaterialMap
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedMaterialMap
(SegmentAllocator arena, Texture texture, Color color, float value) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic MaterialMap
allocateArray
(long elementCount) Allocate an array of MaterialMapstatic MaterialMap
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of MaterialMapcolor()
Material map colorMaterial map colorboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) getColor()
Material map colorMaterial map texturefloat
getValue()
Material map valueint
hashCode()
void
Material map colorvoid
setTexture
(Texture value) Material map texturevoid
setValue
(float value) Material map valuetexture()
Material map textureMaterial map texturefloat
value()
Material map valuevalue
(float value) Material map value
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
MaterialMap
public MaterialMap()Construct with auto memory allocator and fields initialized to zero. -
MaterialMap
Construct with your owm memory allocator and fields not initialized -
MaterialMap
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
MaterialMap
-
MaterialMap
Construct with your own memory allocator and fields initialized as specified- Parameters:
texture
- Material map texturecolor
- Material map colorvalue
- Material map value
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of MaterialMap -
allocateArray
Allocate an array of MaterialMap -
getTexture
Material map texture -
setTexture
Material map texture -
texture
Material map texture -
texture
Material map texture -
getColor
Material map color -
setColor
Material map color -
color
Material map color -
color
Material map color -
getValue
public float getValue()Material map value -
setValue
public void setValue(float value) Material map value -
value
public float value()Material map value -
value
Material map value
-