library / com.otaliastudios.opengl.texture / GlTexture

GlTexture

class GlTexture : GlBindable

Constructors

<init>

GlTexture(unit: Int = GL_TEXTURE0.toInt(), target: Int = GL_TEXTURE_EXTERNAL_OES.toInt(), id: Int? = null)
GlTexture(unit: Int, target: Int, width: Int, height: Int, format: Int = GL_RGBA.toInt(), internalFormat: Int = format, type: Int = GL_UNSIGNED_BYTE.toInt())

Properties

format

val format: Int?

height

val height: Int?

id

val id: Int

target

val target: Int

type

val type: Int?

unit

val unit: Int

width

val width: Int?

Functions

bind

fun bind(): Unit

release

fun release(): Unit

unbind

fun unbind(): Unit

Extension Functions

use

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