Builder

class Builder

Builder for constructing a Material

Functions

Link copied to clipboard
open fun build(engine: Engine): CompletableFuture<Material>
Creates a new Material based on the parameters set previously.
Link copied to clipboard
open fun setRegistryId(registryId: Any): Material.Builder
Allows a Material to be reused.
Link copied to clipboard
open fun setSource(materialBuffer: ByteBuffer): Material.Builder
Allows a Material to be created with data.
open fun setSource(inputStreamCreator: Callable<InputStream>): Material.Builder
Allows a Material to be constructed via callable function.
open fun setSource(context: Context, sourceUri: Uri): Material.Builder
Allows a Material to be constructed from Uri.
open fun setSource(context: Context, resource: Int): Material.Builder
Allows a Material to be constructed from resource.