-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.LoadRenderTexture
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Load texture for rendering (framebuffer) NOTE: Render texture is loaded by default with RGBA color attachment and depth RenderBuffer
| Parameter | Default Value | Note |
|---|---|---|
| width | 960 | |
| height | 640 |
| Condition | Return Value |
|---|---|
| (always) | map |
rt = raylib.LoadRenderTexture(800, 600)
if raylib.IsRenderTextureValid(rt) then
raylib.BeginTextureMode rt
raylib.ClearBackground raylib.BLACK
raylib.EndTextureMode
end if
raylib.UnloadRenderTexture rt