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. --- ReiLua_API.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 4621123..47e4903 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -4133,17 +4133,15 @@ function RL.IsRenderTextureValid( target ) end function RL.UnloadRenderTexture( target ) end ---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 ---@param texture any ----@param pixels table +---@param pixels any ---@return any RL.UpdateTexture function RL.UpdateTexture( texture, pixels ) end ---Update GPU texture rectangle with new data. ----Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format ---@param texture any ---@param rec table ----@param pixels table +---@param pixels any ---@return any RL.UpdateTextureRec function RL.UpdateTextureRec( texture, rec, pixels ) end -- cgit v1.2.3