summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2023-11-15 22:04:45 +0200
committerjussi2023-11-15 22:04:45 +0200
commit118a1f3a8bc468077fdd8bac4d46c452965ce283 (patch)
tree8300bff23e1b6f7f8d0f47a59def8fec761a4f66 /API.md
parent841aa897f1868075134162cc71593ac9c3473115 (diff)
downloadreilua-enhanced-118a1f3a8bc468077fdd8bac4d46c452965ce283.tar.gz
reilua-enhanced-118a1f3a8bc468077fdd8bac4d46c452965ce283.tar.bz2
reilua-enhanced-118a1f3a8bc468077fdd8bac4d46c452965ce283.zip
Quaternion library.
Diffstat (limited to 'API.md')
-rw-r--r--API.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/API.md b/API.md
index e4d2f07..8f823d9 100644
--- a/API.md
+++ b/API.md
@@ -41,6 +41,10 @@ This function will be called on program close. Cleanup could be done here.
---
+## Object unloading
+
+Some objects allocate memory that needs to be freed when object is no longer needed. By default objects like Textures are unloaded by the Lua garbage collector. It is generatty however recommended to handle this manually in more complex projects. You can change the behavior with SetGCUnload.
+
## Arguments
Arguments are stored in 'RL.arg' array.
@@ -69,7 +73,7 @@ Vector4, 4 components
---
-> Quaternion = { 1.0, 1.0, 1.0, 1.0 } or { x = 1.0, y = 1.0, z = 1.0, w = 1.0 }
+> Quaternion = { 0.0, 0.0, 0.0, 1.0 } or { x = 0.0, y = 0.0, z = 0.0, w = 1.0 }
Quaternion, 4 components (Vector4 alias)
@@ -6310,10 +6314,13 @@ Compute model bounding box limits (considers all meshes)
---
-> RL.SetModelMaterial( Model model, Material modelMaterial, Material material )
+> success = RL.SetModelMaterial( Model model, int modelMaterialId, Material material )
Copies material to model material. (Model material is the material id in models.)
+- Failure return false
+- Success return true
+
---
> RL.SetModelMeshMaterial( Model model, int meshId, int materialId )