openrndr / org.openrndr.draw / RenderTarget

RenderTarget

interface RenderTarget (source)

Properties

colorAttachments

abstract val colorAttachments: List<ColorAttachment>

contentScale

abstract val contentScale: Double

depthBuffer

abstract val depthBuffer: DepthBuffer?

effectiveHeight

open val effectiveHeight: Int

effectiveWidth

open val effectiveWidth: Int

hasColorAttachments

abstract val hasColorAttachments: Boolean

hasDepthBuffer

abstract val hasDepthBuffer: Boolean

height

abstract val height: Int

multisample

abstract val multisample: BufferMultisample

session

abstract val session: Session?

width

abstract val width: Int

Functions

attach

abstract fun attach(colorBuffer: ColorBuffer, level: Int = 0, name: String? = null): Unit
abstract fun attach(depthBuffer: DepthBuffer): Unit
abstract fun attach(arrayTexture: ArrayTexture, layer: Int, level: Int = 0, name: String? = null): Unit
abstract fun attach(arrayCubemap: ArrayCubemap, side: CubemapSide, layer: Int, level: Int = 0, name: String? = null): Unit
abstract fun attach(cubemap: Cubemap, side: CubemapSide, level: Int = 0, name: String? = null): Unit

bind

abstract fun bind(): Unit

blendMode

abstract fun blendMode(index: Int, blendMode: BlendMode): Unit

clearColor

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

clearDepth

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

colorAttachmentByName

open fun colorAttachmentByName(name: String): ColorAttachment?

colorAttachmentIndexByName

open fun colorAttachmentIndexByName(name: String): Int?

colorBuffer

abstract fun colorBuffer(index: Int): ColorBuffer

destroy

abstract fun destroy(): Unit

detachColorAttachments

abstract fun detachColorAttachments(): Unit

detachDepthBuffer

abstract fun detachDepthBuffer(): Unit

resolveTo

open fun resolveTo(to: RenderTarget): Unit

unbind

abstract fun unbind(): Unit

Companion Object Properties

active

val active: RenderTarget

Inheritors

ProgramRenderTarget

A render target that wraps around the back-buffer

interface ProgramRenderTarget : RenderTarget