RenderTexture.getTexture

Get a read-only reference to the target texture.

After drawing to the render-texture and calling Display, you can retrieve the updated texture using this function, and draw it using a sprite (for example).

The internal Texture of a render-texture is always the same instance, so that it is possible to call this function once and keep a reference to the texture even after it is modified.

class RenderTexture
const
const(Texture)
getTexture
()

Return Value

Type: const(Texture)

Const reference to the texture.

Meta