summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2023-05-30 13:42:43 +0300
committerjussi2023-05-30 13:42:43 +0300
commite1cc1e9e2796540ab81b9798aeb1684614c66b88 (patch)
treee4a9cf22336af770d6803717012708350e2dc503 /API.md
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 'API.md')
-rw-r--r--API.md90
1 files changed, 90 insertions, 0 deletions
diff --git a/API.md b/API.md
index d3cfdb4..bea07de 100644
--- a/API.md
+++ b/API.md
@@ -6520,6 +6520,96 @@ Send light properties to shader
---
+> success = RL.SetLightType( Light light, int type )
+
+Set light type
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.SetLightPosition( Light light, Vector3 position )
+
+Set light position
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.SetLightTarget( Light light, Vector3 target )
+
+Set light target
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.SetLightColor( Light light, Color color )
+
+Set light color
+
+- Failure return false
+- Success return true
+
+---
+
+> success = RL.SetLightEnabled( Light light, bool enabled )
+
+Set light enabled
+
+- Failure return false
+- Success return true
+
+---
+
+> type = RL.GetLightType( Light light )
+
+Get light type
+
+- Failure return false
+- Success return int
+
+---
+
+> position = RL.GetLightPosition( Light light )
+
+Get light position
+
+- Failure return false
+- Success return Vector3
+
+---
+
+> target = RL.GetLightTarget( Light light )
+
+Get light target
+
+- Failure return false
+- Success return Vector3
+
+---
+
+> color = RL.GetLightColor( Light light )
+
+Get light color
+
+- Failure return false
+- Success return Color
+
+---
+
+> enabled = RL.IsLightEnabled( Light light )
+
+Get light enabled
+
+- Failure return nil
+- Success return boolean
+
+---
+
## RLGL - General render state
---