summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2024-09-25 20:54:32 +0300
committerjussi2024-09-25 20:54:32 +0300
commit45e11be96a7503a0cfe29bbbcc8d885d81ab9591 (patch)
treebcd06238db0d83c62f117acca4f8d2d321c31e6a /ReiLua_API.lua
parentcd6471d339c394a37a1d46119818e0cabdcf5b42 (diff)
downloadreilua-enhanced-45e11be96a7503a0cfe29bbbcc8d885d81ab9591.tar.gz
reilua-enhanced-45e11be96a7503a0cfe29bbbcc8d885d81ab9591.tar.bz2
reilua-enhanced-45e11be96a7503a0cfe29bbbcc8d885d81ab9591.zip
UnloadMaterial can also optionally free textures and shader.
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua
index 740729b..383386d 100644
--- a/ReiLua_API.lua
+++ b/ReiLua_API.lua
@@ -944,7 +944,7 @@ RL.RL_MAX_SHADER_LOCATIONS=32
---Default projection matrix near cull distance
RL.RL_CULL_DISTANCE_NEAR=0.01
---Default projection matrix far cull distance
-RL.RL_CULL_DISTANCE_FAR=1000.0
+RL.RL_CULL_DISTANCE_FAR=1000
-- Defines - RLGL Texture parameters
@@ -4557,7 +4557,7 @@ function RL.LoadModelFromMesh( mesh ) end
---@return any isReady
function RL.IsModelReady( model ) end
----Unload model (including meshes) from memory (RAM and/or VRAM)
+---Unload model (meshes/materials) from memory (RAM and/or VRAM)
---@param model any
---@return any RL.UnloadModel
function RL.UnloadModel( model ) end
@@ -4936,10 +4936,11 @@ function RL.CreateMaterial( materialData ) end
---@return any isReady
function RL.IsMaterialReady( material ) end
----Unload material from GPU memory (VRAM)
+---Unload material from GPU memory (VRAM). Note! Use freeAll to unload shaders and textures
---@param material any
+---@param freeAll boolean
---@return any RL.UnloadMaterial
-function RL.UnloadMaterial( material ) end
+function RL.UnloadMaterial( material, freeAll ) end
---Set texture for a material map type (MATERIAL_MAP_ALBEDO, MATERIAL_MAP_METALNESS...)
---@param material any