diff options
| author | jussi | 2023-05-01 18:23:36 +0300 |
|---|---|---|
| committer | jussi | 2023-05-01 18:23:36 +0300 |
| commit | acc56fc7c2bedde6eced005eab0a37b6281b9a23 (patch) | |
| tree | 6298f7eeee27469f20d6d992c93118aa162b49a8 /ReiLua_API.lua | |
| parent | 8b6337446dd79faf226ea9df40d4d06d81c38436 (diff) | |
| download | reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.tar.gz reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.tar.bz2 reilua-enhanced-acc56fc7c2bedde6eced005eab0a37b6281b9a23.zip | |
Texture now can be either Texture or RenderTexture. No need to change texture source anymore.
Diffstat (limited to 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua index f2c4289..c8e187e 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -381,8 +381,8 @@ RL.NPATCH_THREE_PATCH_HORIZONTAL=2 -- Globals - TextureModes -RL.TEXTURE_SOURCE_TEXTURE=0 -RL.TEXTURE_SOURCE_RENDER_TEXTURE=1 +RL.TEXTURE_TYPE_TEXTURE=0 +RL.TEXTURE_TYPE_RENDER_TEXTURE=1 -- Globals - Colors @@ -2639,15 +2639,8 @@ function RL.LoadRenderTexture( size ) end ---@return any success function RL.UnloadTexture( texture ) end ----Unload render texture from GPU memory ( VRAM ) ----- Failure return false ----- Success return true ----@param target any ----@return any success -function RL.UnloadRenderTexture( target ) end - ---Update GPU texture with new data ----NOTE! Should be TEXTURE_SOURCE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format +---NOTE! Should be TEXTURE_TYPE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format ---- Failure return false ---- Success return true ---@param texture any @@ -2656,7 +2649,7 @@ function RL.UnloadRenderTexture( target ) end function RL.UpdateTexture( texture, pixels ) end ---Update GPU texture rectangle with new data ----NOTE! Should be TEXTURE_SOURCE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format +---NOTE! Should be TEXTURE_TYPE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format ---- Failure return false ---- Success return true ---@param texture any @@ -2721,17 +2714,12 @@ function RL.BeginTextureMode( target ) end ---@return any RL.EndTextureMode function RL.EndTextureMode() end ----Set what texture source to use ( TEXTURE_SOURCE_TEXTURE or TEXTURE_SOURCE_RENDER_TEXTURE ) +---Get texture type ( TEXTURE_TYPE_TEXTURE or TEXTURE_TYPE_RENDER_TEXTURE ) ---- Failure return false ----- Success return true ----@param textureSource integer ----@return any success -function RL.SetTextureSource( textureSource ) end - ----Get current texture source type ( TEXTURE_SOURCE_TEXTURE or TEXTURE_SOURCE_RENDER_TEXTURE ) ---- Success return int ----@return any textureSource -function RL.GetTextureSource() end +---@param texture any +---@return any type +function RL.GetTextureType( texture ) end -- Textures - Texture Configuration |
