You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Update GPU texture with new data NOTE 1: pixels data must match texture.format NOTE 2: pixels data must contain at least as many pixels as texture
Parameters
Parameter
Default Value
Note
texture
pixels
Return value
None.
Notes
Example
tex=raylib.LoadTexture("sprite.png")
// Build raw RGBA pixel data and push it to the GPUpixels=char(255) *4*tex.width*tex.height// all whiteraylib.UpdateTexturetex, pixelsraylib.UnloadTexturetex