TextureImageSourceBuilder

class TextureImageSourceBuilder

A builder for a TextureImageSource.

Constructors

TextureImageSourceBuilder
Link copied to clipboard
fun TextureImageSourceBuilder()

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
fun build(): TextureImageSource
Builds a TextureImageSource with the provided parameters.
fun build(): TextureImageSource
Builds a TextureImageSource with the provided parameters.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
fromInputStream
Link copied to clipboard
fun fromInputStream(inputStreamProvider: InputStreamProvider): TextureImageSourceBuilder
Will build a texture source from an input stream provided by inputStreamProvider.
hashCode
Link copied to clipboard
open fun hashCode(): Int
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
open fun toString(): String
withFilename
Link copied to clipboard
common
fun withFilename(filename: String): TextureImageSourceBuilder
Will build a texture source with a given filename.
fun withFilename(filename: String): TextureImageSourceBuilder
Will build a texture source with a given filename.

Extensions

fromAsset
Link copied to clipboard
fun TextureImageSourceBuilder.fromAsset(context: Context, fileName: String): TextureImageSourceBuilder
Will build a texture source from an asset with a given fileName.
fromFile
Link copied to clipboard
fun TextureImageSourceBuilder.fromFile(file: File): TextureImageSourceBuilder
Will build a texture source from a given file.
fun TextureImageSourceBuilder.fromFile(file: File): TextureImageSourceBuilder
Will build a texture source from a given file.
fromResource
Link copied to clipboard
fun TextureImageSourceBuilder.fromResource(owner: Any, name: String): TextureImageSourceBuilder
Will build a texture source from a resource with a given name, associated with a given owner.