Package 

Class Material.Builder

    • Method Summary

      Modifier and Type Method Description
      Material.Builder payload(@NonNull() Buffer buffer, @IntRange(from = 0) int size) Specifies the material data.
      Material build(@NonNull() Engine engine) Creates and returns the Material object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • payload

        @NonNull() Material.Builder payload(@NonNull() Buffer buffer, @IntRange(from = 0) int size)

        Specifies the material data. The material data is a binary blob produced bylibfilamat or by matc.

        Parameters:
        buffer - buffer containing material data
        size - size of the material data in bytes
      • build

        @NonNull() Material build(@NonNull() Engine engine)

        Creates and returns the Material object.

        Parameters:
        engine - reference to the Engine instance to associate this Material with