Skip to content

raylib.LoadRenderTextureEx

JoeStrout edited this page Nov 16, 2026 · 2 revisions

Load texture for rendering (framebuffer), with specific pixel format (a PIXELFORMAT_* value)

Parameters

Parameter Default Value Note
width 960
height 640
format PIXELFORMAT_UNCOMPRESSED_R8G8B8A8

Return value

Condition Return Value
(always) map

Notes

Like LoadRenderTexture, but lets you choose the color attachment's pixel format (one of the PIXELFORMAT_UNCOMPRESSED_* constants). Compressed formats are not supported. Some formats may not be renderable on every platform (especially web/OpenGL ES 2).

Example

rt = raylib.LoadRenderTextureEx(256, 256, raylib.PIXELFORMAT_UNCOMPRESSED_R32G32B32A32)
raylib.BeginTextureMode rt
raylib.ClearBackground raylib.BLACK
raylib.EndTextureMode
raylib.UnloadRenderTexture rt

Clone this wiki locally