library / com.otaliastudios.opengl.texture / GlFramebuffer

GlFramebuffer

class GlFramebuffer : GlBindable

Constructors

<init>

GlFramebuffer(id: Int? = null)

Properties

id

val id: Int

Functions

attach

fun attach(texture: GlTexture, attachment: Int = GL_COLOR_ATTACHMENT0.toInt()): Unit

bind

fun bind(): Unit

release

fun release(): Unit

unbind

fun unbind(): Unit

Extension Functions

use

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