From 118a1f3a8bc468077fdd8bac4d46c452965ce283 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 15 Nov 2023 22:04:45 +0200 Subject: Quaternion library. --- API.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'API.md') 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 ) -- cgit v1.2.3