-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.BeginTextureMode
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Initializes render texture for drawing
| Parameter | Default Value | Note |
|---|---|---|
| target |
None.
// 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