summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2023-05-30 13:42:43 +0300
committerjussi2023-05-30 13:42:43 +0300
commite1cc1e9e2796540ab81b9798aeb1684614c66b88 (patch)
treee4a9cf22336af770d6803717012708350e2dc503 /ReiLua_API.lua
parent335321e3aa238069df88cf06c98119ef4ef348d3 (diff)
downloadreilua-enhanced-e1cc1e9e2796540ab81b9798aeb1684614c66b88.tar.gz
reilua-enhanced-e1cc1e9e2796540ab81b9798aeb1684614c66b88.tar.bz2
reilua-enhanced-e1cc1e9e2796540ab81b9798aeb1684614c66b88.zip
Light property functions and basic light example.
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua75
1 files changed, 75 insertions, 0 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua
index 0ace7f4..54ab8ba 100644
--- a/ReiLua_API.lua
+++ b/ReiLua_API.lua
@@ -5335,6 +5335,81 @@ function RL.CreateLight( type, position, target, color, shader ) end
---@return any success
function RL.UpdateLightValues( shader, light ) end
+---Set light type
+---- Failure return false
+---- Success return true
+---@param light any
+---@param type integer
+---@return any success
+function RL.SetLightType( light, type ) end
+
+---Set light position
+---- Failure return false
+---- Success return true
+---@param light any
+---@param position table
+---@return any success
+function RL.SetLightPosition( light, position ) end
+
+---Set light target
+---- Failure return false
+---- Success return true
+---@param light any
+---@param target table
+---@return any success
+function RL.SetLightTarget( light, target ) end
+
+---Set light color
+---- Failure return false
+---- Success return true
+---@param light any
+---@param color table
+---@return any success
+function RL.SetLightColor( light, color ) end
+
+---Set light enabled
+---- Failure return false
+---- Success return true
+---@param light any
+---@param enabled boolean
+---@return any success
+function RL.SetLightEnabled( light, enabled ) end
+
+---Get light type
+---- Failure return false
+---- Success return int
+---@param light any
+---@return any type
+function RL.GetLightType( light ) end
+
+---Get light position
+---- Failure return false
+---- Success return Vector3
+---@param light any
+---@return any position
+function RL.GetLightPosition( light ) end
+
+---Get light target
+---- Failure return false
+---- Success return Vector3
+---@param light any
+---@return any target
+function RL.GetLightTarget( light ) end
+
+---Get light color
+---- Failure return false
+---- Success return Color
+---@param light any
+---@return any color
+function RL.GetLightColor( light ) end
+
+---Get light enabled
+---- Failure return nil
+---- Success return boolean
+---@param light any
+---@return any enabled
+function RL.IsLightEnabled( light ) end
+
-- RLGL - General render state
---Enable color blending