diff options
| author | jussi | 2025-01-31 15:26:20 +0200 |
|---|---|---|
| committer | jussi | 2025-01-31 15:26:20 +0200 |
| commit | 38d41e245782e3dde02dc7717737af09da31ce93 (patch) | |
| tree | 10982ef4f94fb2898b6abd45692a394e4eff76b1 /API.md | |
| parent | c8131ea95846f76fb196a78ce9c9b09aeb15736c (diff) | |
| download | reilua-enhanced-38d41e245782e3dde02dc7717737af09da31ce93.tar.gz reilua-enhanced-38d41e245782e3dde02dc7717737af09da31ce93.tar.bz2 reilua-enhanced-38d41e245782e3dde02dc7717737af09da31ce93.zip | |
UpdateTexture and UpdateTextureRec now take pixel data as Buffer.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 --- |
