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

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

Types

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

Functions

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.

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.

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

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

Link copied to clipboard
fun fromBufferedImage(bufferedImageProvider: BufferedImageProvider): TextureImageSourceBuilder

Will build a texture source from a buffered image provided by bufferedImageProvider.

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

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

Link copied to clipboard
fun withFilename(filename: String): TextureImageSourceBuilder

Will build a texture source with a given filename.

Extensions

Link copied to clipboard
fun TextureImageSourceBuilder.fromAsset(context: Context, fileName: String): TextureImageSourceBuilder

Will build a texture source from an asset with a given fileName.

Link copied to clipboard

Will build a texture source from a given bufferedImage.

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.

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.