TextureImageSourceBuilder

actual class TextureImageSourceBuilder

A builder for a TextureImageSource.

expect class TextureImageSourceBuilder

A builder for a TextureImageSource.

actual class TextureImageSourceBuilder

A builder for a TextureImageSource.

Constructors

TextureImageSourceBuilder
Link copied to clipboard
fun TextureImageSourceBuilder()
TextureImageSourceBuilder
Link copied to clipboard
fun TextureImageSourceBuilder()

Types

Companion
Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion

Functions

build
Link copied to clipboard
actual fun build(): TextureImageSource

Builds a TextureImageSource with the provided parameters.

expect fun build(): TextureImageSource

Builds a TextureImageSource with the provided parameters.

actual fun build(): TextureImageSource

Builds a TextureImageSource with the provided parameters.

buildPrepared
Link copied to clipboard
fun buildPrepared(): TextureImageSource

Builds a prepared TextureImageSource with the provided parameters.

fun buildPrepared(profile: GLProfile): TextureImageSource

Builds a prepared TextureImageSource with the provided parameters and a given OpenGL profile.

fromBitmap
Link copied to clipboard
fun fromBitmap(bitmapProvider: BitmapProvider): TextureImageSourceBuilder

Will build a texture source from a bitmap provided by bitmapProvider.

fromInputStream
Link copied to clipboard
fun fromInputStream(inputStreamProvider: InputStreamProvider): TextureImageSourceBuilder

Will build a texture source from an input stream provided by inputStreamProvider.

withFilename
Link copied to clipboard
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.