Skip to content

raylib.BeginTextureMode

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Initializes render texture for drawing

Parameters

Parameter Default Value Note
target

Return value

None.

Notes

Example

// Draw a scene into a render texture, then display it
rt = raylib.LoadRenderTexture(320, 240)
raylib.BeginTextureMode rt
raylib.ClearBackground raylib.DARKBLUE
raylib.DrawText "Hello, render texture!", 10, 10, 20, raylib.WHITE
raylib.EndTextureMode
// rt.texture now holds the rendered scene
raylib.DrawTexture rt.texture, 0, 0, raylib.WHITE

Clone this wiki locally