openrndr / org.openrndr.internal.gl3 / RenderTargetGL3

RenderTargetGL3

open class RenderTargetGL3 : RenderTarget

Constructors

<init>

RenderTargetGL3(framebuffer: Int, width: Int, height: Int, contentScale: Double, multisample: BufferMultisample, thread: Thread = Thread.currentThread())

Properties

colorBuffers

open val colorBuffers: List<ColorBuffer>

contentScale

open val contentScale: Double

depthBuffer

open val depthBuffer: DepthBuffer?

framebuffer

val framebuffer: Int

hasColorBuffer

open val hasColorBuffer: Boolean

hasDepthBuffer

open val hasDepthBuffer: Boolean

height

open val height: Int

multisample

open val multisample: BufferMultisample

width

open val width: Int

Inherited Properties

effectiveHeight

open val effectiveHeight: Int

effectiveWidth

open val effectiveWidth: Int

Functions

attach

open fun attach(name: String, colorBuffer: ColorBuffer): Unit
open fun attach(colorBuffer: ColorBuffer): Unit
open fun attach(depthBuffer: DepthBuffer): Unit

bind

open fun bind(): Unit

clearColor

open fun clearColor(index: Int, color: ColorRGBa): Unit

clearDepth

open fun clearDepth(depth: Double, stencil: Int): Unit

colorBuffer

open fun colorBuffer(index: Int): ColorBuffer
open fun colorBuffer(name: String): ColorBuffer

colorBufferIndex

open fun colorBufferIndex(name: String): Int

destroy

open fun destroy(): Unit

detachColorBuffers

open fun detachColorBuffers(): Unit

detachDepthBuffer

open fun detachDepthBuffer(): Unit

unbind

open fun unbind(): Unit

Companion Object Properties

activeRenderTarget

val activeRenderTarget: RenderTargetGL3

Companion Object Functions

create

fun create(width: Int, height: Int, contentScale: Double = 1.0, multisample: BufferMultisample = BufferMultisample.Disabled): RenderTargetGL3

Inheritors

NullRenderTargetGL3

class NullRenderTargetGL3 : RenderTargetGL3

ProgramRenderTargetGL3

class ProgramRenderTargetGL3 : ProgramRenderTarget, RenderTargetGL3