org.rajawali3d.renderer / Renderer / setRenderTarget

setRenderTarget

open fun setRenderTarget(renderTarget: RenderTarget!): Unit

Sets the current render target. Please mind that this CAN ONLY BE called on the main OpenGL render thread. A subsequent call to Renderer#render(long, double) will render the current scene into this render target. Setting the render target to null will switch back to normal rendering.

Parameters

renderTarget - RenderTarget!:

open fun setRenderTarget(renderTarget: RenderTarget!): Unit

Sets the current render target. Please mind that this CAN ONLY BE called on the main OpenGL render thread. A subsequent call to Renderer#render(long, double) will render the current scene into this render target. Setting the render target to null will switch back to normal rendering.

Parameters

renderTarget - RenderTarget!: