UpdateTexture and UpdateTextureRec now take pixel data as Buffer.

This commit is contained in:
jussi
2025-01-31 15:26:20 +02:00
parent c8131ea958
commit 38d41e2457
4 changed files with 11 additions and 64 deletions

6
API.md
View File

@@ -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
---