LazyRenderTargetHolder

class LazyRenderTargetHolder(val name: String, val useDepth: Boolean) : AutoCloseable

A holder for a RenderTarget that initializes it lazily and handles resizing.

Constructors

Link copied to clipboard
constructor(name: String, useDepth: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
var raw: RenderTarget?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Destroys the buffers and releases the RenderTarget.

Link copied to clipboard
fun initAndGet(): RenderTarget

Initializes the RenderTarget if needed, or resizes/clears it if it already exists, then returns it.