Builder

interface Builder

An interface for a texture builder.

Types

Companion
Link copied to clipboard
object Companion

Functions

addCubemapTexture
Link copied to clipboard
abstract fun addCubemapTexture(side: CubemapSide, source: TextureImageSource): Texture.Builder

Adds a source of a cubemap texture for a given side.

addTexture
Link copied to clipboard
abstract fun addTexture(source: TextureImageSource): Texture.Builder

Adds a source of a 2D texture.

build
Link copied to clipboard
abstract fun build(): List<Texture>

Builds textures from all added sources.

generateMipmaps
Link copied to clipboard
abstract fun generateMipmaps(): Texture.Builder

Tells the builder to generate mipmaps for all created textures.