initAndGet

fun initAndGet(): RenderTarget

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


fun initAndGet(width: Int, height: Int): RenderTarget

Initializes the RenderTarget with the requested size.