Builder

interface Builder

An interface for a texture builder.

Types

Link copied to clipboard
object Companion

Functions

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

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

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

Adds a source of a 2D texture.

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

Builds textures from all added sources.

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

Tells the builder to generate mipmaps for all created textures.

Link copied to clipboard
abstract fun setTextureFilter(minFilter: TextureMinFilter, magFilter: TextureMagFilter): Texture.Builder

Sets minifying and magnifying filters all created textures.

Link copied to clipboard
abstract fun setTextureWrap(wrapS: TextureWrap, wrapT: TextureWrap = wrapS): Texture.Builder

Sets wrap parameter for texture coordinates S and T filters all created textures.