From 4ff1b1dcb9f52a2642feabda38c8c135aac6c599 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 29 Nov 2023 17:20:54 +0200 Subject: ExportBufferAsCode. --- ReiLua_API.lua | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 98d656a..b1b6500 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -2366,6 +2366,14 @@ function RL.UpdateCamera3DPro( camera, movement, rotation, zoom ) end ---@return any buffer function RL.LoadBuffer( buffer, type ) end +---Read buffer data from binary file +---- Failure return nil +---- Success return Buffer +---@param path string +---@param int any +---@return any buffer +function RL.LoadBufferFromFile( path, int ) end + ---Unload buffer data ---@param buffer any ---@return any RL.UnloadBuffer @@ -2395,13 +2403,12 @@ function RL.GetBufferSize( buffer ) end ---@return any RL.ExportBuffer function RL.ExportBuffer( buffer, path ) end ----Read buffer data from binary file ----- Failure return nil ----- Success return Buffer ----@param path string ----@param int any ----@return any buffer -function RL.LoadBufferFromFile( path, int ) end +---Export buffer data to code (.h), returns true on success +---- Success return bool +---@param buffer any +---@param fileName string +---@return any success +function RL.ExportBufferAsCode( buffer, fileName ) end -- Shapes - Basic shapes drawing functions -- cgit v1.2.3