AGTextureUnits

data class AGTextureUnits(val textures: Array<AGTexture?>, val infos: AGTextureUnitInfoArray)

Constructors

Link copied to clipboard
constructor(size: Int = MAX_TEXTURE_UNITS)
constructor(textures: Array<AGTexture?>, infos: AGTextureUnitInfoArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
Link copied to clipboard
fun copyFrom(other: AGTextureUnits, sampler: Sampler)
fun copyFrom(other: AGTextureUnits, index: Int)
Link copied to clipboard
inline fun fastForEach(block: (index: Int, tex: AGTexture?, info: AGTextureUnitInfo) -> Unit)
Link copied to clipboard
fun set(sampler: Sampler, texture: AGTexture?, info: AGTextureUnitInfo = AGTextureUnitInfo.DEFAULT)
fun set(index: Int, texture: AGTexture?, info: AGTextureUnitInfo = AGTextureUnitInfo.DEFAULT)