library / com.otaliastudios.opengl.texture / GlTexture

GlTexture

class GlTexture : GlBindable

Constructors

<init>

GlTexture(unit: Int = GLES20.GL_TEXTURE0, target: Int = GLES11Ext.GL_TEXTURE_EXTERNAL_OES, id: Int? = null)
GlTexture(unit: Int, target: Int, width: Int, height: Int, format: Int = GLES20.GL_RGBA)

Properties

id

val id: Int

target

val target: Int

unit

val unit: Int

Functions

bind

fun bind(): Unit

release

fun release(): Unit

unbind

fun unbind(): Unit

Extension Functions

use

fun GlBindable.use(block: () -> Unit): Unit