diff options
| author | jussi | 2023-11-20 16:20:11 +0200 |
|---|---|---|
| committer | jussi | 2023-11-20 16:20:11 +0200 |
| commit | 7765a23a2c90e6d02f6278eed1b1b9b9375bc941 (patch) | |
| tree | faa7dee80e49a327bf04fbb086822b25cf019f88 /ReiLua_API.lua | |
| parent | 50d0e15ff494291779710b120d8f53202aa2ef1f (diff) | |
| download | reilua-enhanced-7765a23a2c90e6d02f6278eed1b1b9b9375bc941.tar.gz reilua-enhanced-7765a23a2c90e6d02f6278eed1b1b9b9375bc941.tar.bz2 reilua-enhanced-7765a23a2c90e6d02f6278eed1b1b9b9375bc941.zip | |
LoadImageRaw, LoadImageAnim and LoadImageFromMemory. Version 0.6.
Diffstat (limited to 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua index f607ffe..de40894 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -2678,11 +2678,38 @@ function RL.GetCollisionRec( rec1, rec2 ) end -- Textures - Image loading functions ---Load image from file into CPU memory (RAM) +---- Failure return nil ---- Success return Image ---@param fileName string ---@return any image function RL.LoadImage( fileName ) end +---Load image from RAW file data +---- Failure return nil +---- Success return Image +---@param fileName string +---@param size table +---@param format integer +---@param headerSize integer +---@return any image +function RL.LoadImageRaw( fileName, size, format, headerSize ) end + +---Load image sequence from file (frames appended to image.data). All frames are returned in RGBA format +---- Failure return nil +---- Success return Image, int +---@param fileName string +---@return any image +---@return any frameCount +function RL.LoadImageAnim( fileName ) end + +---Load image from memory buffer, fileType refers to extension: i.e. '.png' +---- Success return Image +---@param fileType string +---@param data any +---@return any image +---@return any frameCount +function RL.LoadImageFromMemory( fileType, data ) end + ---Load image from GPU texture data ---- Success return Image ---@param texture any |
