Update RingRayLib - raylib.c - Add Function : void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)
@@ -5485,6 +5485,30 @@ RING_FUNC(ring_DrawModel)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(4,"Color"));
}
+
+RING_FUNC(ring_DrawModelEx)
+{
+ if ( RING_API_PARACOUNT != 6 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ DrawModelEx(* (Model *) RING_API_GETCPOINTER(1,"Model"),* (Vector3 *) RING_API_GETCPOINTER(2,"Vector3"),* (Vector3 *) RING_API_GETCPOINTER(3,"Vector3"), (float ) RING_API_GETNUMBER(4),* (Vector3 *) RING_API_GETCPOINTER(5,"Vector3"),* (Color *) RING_API_GETCPOINTER(6,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Model"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Vector3"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Vector3"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(5))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Vector3"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(6))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(6,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -5792,4 +5816,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("meshtangents",ring_MeshTangents);
ring_vm_funcregister("meshbinormals",ring_MeshBinormals);
ring_vm_funcregister("drawmodel",ring_DrawModel);
+ ring_vm_funcregister("drawmodelex",ring_DrawModelEx);
}
