TextureImageSourceBuilder

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
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.
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.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
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.
hashCode
Link copied to clipboard
open fun hashCode(): Int
open fun hashCode(): Int
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
open fun toString(): String
open fun toString(): String
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.