Builder

class Builder

Factory class for Texture

Functions

Link copied to clipboard
open fun build(engine: Engine): CompletableFuture<Texture>
Creates a new Texture based on the parameters set previously
Link copied to clipboard
open fun setData(textureInternalData: TextureInternalData): Texture.Builder
Sets internal data of the texture directly.
Link copied to clipboard
open fun setRegistryId(registryId: Any): Texture.Builder
Allows a Texture to be reused.
Link copied to clipboard
Sets the Samplerto control rendering parameters on the Texture.
Link copied to clipboard
open fun setSource(bitmap: Bitmap): Texture.Builder
Allows a Texture to be constructed from a Bitmap.
open fun setSource(inputStreamCreator: Callable<InputStream>): Texture.Builder
Allows a Texture to be constructed via callable function.
open fun setSource(context: Context, sourceUri: Uri): Texture.Builder
Allows a Texture to be constructed from Uri.
open fun setSource(context: Context, resource: Int): Texture.Builder
Allows a Texture to be constructed from resource.
Link copied to clipboard
Mark the Texture as a containing color, normal or arbitrary data.