From 38d41e245782e3dde02dc7717737af09da31ce93 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 31 Jan 2025 15:26:20 +0200 Subject: UpdateTexture and UpdateTextureRec now take pixel data as Buffer. --- API.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'API.md') diff --git a/API.md b/API.md index bd54ad5..f1bf974 100644 --- a/API.md +++ b/API.md @@ -7611,17 +7611,15 @@ Unload render texture from GPU memory (VRAM) --- -> RL.UpdateTexture( Texture texture, int{} pixels ) +> RL.UpdateTexture( Texture texture, Buffer pixels ) Update GPU texture with new data -NOTE! Should be TEXTURE_TYPE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format --- -> RL.UpdateTextureRec( Texture texture, Rectangle rec, int{} pixels ) +> RL.UpdateTextureRec( Texture texture, Rectangle rec, Buffer pixels ) Update GPU texture rectangle with new data. -Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format --- -- cgit v1.2.3