Class MaterialMap

java.lang.Object
com.raylib.MaterialMap

public class MaterialMap extends Object
MaterialMap
  • Field Details

    • memorySegment

      public final MemorySegment 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

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

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

      public MaterialMap(Texture texture, Color color, float value)
      Construct with auto memory allocator and fields initialized as specified
      Parameters:
      texture - Material map texture
      color - Material map color
      value - Material map value
    • MaterialMap

      public MaterialMap(SegmentAllocator arena, Texture texture, Color color, float value)
      Construct with your own memory allocator and fields initialized as specified
      Parameters:
      texture - Material map texture
      color - Material map color
      value - Material map value
  • 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 MaterialMap getArrayElement(int index)
    • allocateArray

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

      public static MaterialMap allocateArray(long elementCount)
      Allocate an array of MaterialMap
    • getTexture

      public Texture getTexture()
      Material map texture
    • setTexture

      public void setTexture(Texture value)
      Material map texture
    • texture

      public Texture texture()
      Material map texture
    • texture

      public MaterialMap texture(Texture value)
      Material map texture
    • getColor

      public Color getColor()
      Material map color
    • setColor

      public void setColor(Color value)
      Material map color
    • color

      public Color color()
      Material map color
    • color

      public MaterialMap color(Color value)
      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

      public MaterialMap value(float value)
      Material map value