openrndr / org.openrndr.draw / ProgramRenderTarget

ProgramRenderTarget

interface ProgramRenderTarget : RenderTarget

Properties

height

open val height: Int

program

abstract val program: Program

width

open val width: Int

Inherited Properties

colorBuffers

abstract val colorBuffers: List<ColorBuffer>

contentScale

abstract val contentScale: Double

depthBuffer

abstract val depthBuffer: DepthBuffer?

effectiveHeight

open val effectiveHeight: Int

effectiveWidth

open val effectiveWidth: Int

hasColorBuffer

abstract val hasColorBuffer: Boolean

hasDepthBuffer

abstract val hasDepthBuffer: Boolean

multisample

abstract val multisample: BufferMultisample

Inherited Functions

attach

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

bind

abstract fun bind(): Unit

clearColor

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

clearDepth

abstract fun clearDepth(depth: Double = 1.0, stencil: Int = 0): Unit

colorBuffer

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

colorBufferIndex

abstract fun colorBufferIndex(name: String): Int

destroy

abstract fun destroy(): Unit

detachColorBuffers

abstract fun detachColorBuffers(): Unit

detachDepthBuffer

abstract fun detachDepthBuffer(): Unit

unbind

abstract fun unbind(): Unit

Inheritors

ProgramRenderTargetGL3

class ProgramRenderTargetGL3 : ProgramRenderTarget, RenderTargetGL3