openrndr / org.openrndr.draw / Session

Session

class Session (source)

Session

Constructors

<init>

Session

Session(parent: Session?)

Properties

context

val context: Long

parent

val parent: Session?

statistics

Session statistics

val statistics: SessionStatistics

Functions

end

Ends the session, destroys any GPU resources in use by the session

fun end(): Unit

fork

Fork the session

fun fork(): Session

track

fun track(renderTarget: RenderTarget): Boolean
fun track(colorBuffer: ColorBuffer): Boolean
fun track(depthBuffer: DepthBuffer): Boolean
fun track(vertexBuffer: VertexBuffer): Boolean
fun track(indexBuffer: IndexBuffer): Boolean
fun track(shader: Shader): Boolean
fun track(computeShader: ComputeShader): Boolean
fun track(cubemap: Cubemap): Boolean
fun track(bufferTexture: BufferTexture): Boolean
fun track(arrayTexture: ArrayTexture): Boolean
fun track(atomicCounterBuffer: AtomicCounterBuffer): Boolean
fun track(arrayCubemap: ArrayCubemap): Boolean
fun track(volumeTexture: VolumeTexture): Boolean

untrack

fun untrack(renderTarget: RenderTarget): Boolean
fun untrack(colorBuffer: ColorBuffer): Boolean
fun untrack(depthBuffer: DepthBuffer): Boolean
fun untrack(vertexBuffer: VertexBuffer): Boolean
fun untrack(indexBuffer: IndexBuffer): Boolean
fun untrack(shader: Shader): Boolean
fun untrack(computeShader: ComputeShader): Boolean
fun untrack(cubemap: Cubemap): Boolean
fun untrack(bufferTexture: BufferTexture): Boolean
fun untrack(arrayTexture: ArrayTexture): Boolean
fun untrack(atomicCounterBuffer: AtomicCounterBuffer): Boolean
fun untrack(arrayCubemap: ArrayCubemap): Boolean
fun untrack(volumeTexture: VolumeTexture): Boolean

Companion Object Properties

active

The active session (on the active context)

val active: Session

root

The root session (on the active context)

val root: Session

stack

The session stack (on the active context)

val stack: Stack<Session>

Companion Object Functions

endActive

Ends the active session and pops it off the session stack (on the active context)

fun endActive(): Unit