Update RingRayLib - raylib.c - Add Function : void DrawModelWires(Model model, Vector3 position, float scale, Color tint)
@@ -5509,6 +5509,26 @@ RING_FUNC(ring_DrawModelEx)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(6,"Color"));
}
+
+RING_FUNC(ring_DrawModelWires)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ DrawModelWires(* (Model *) RING_API_GETCPOINTER(1,"Model"),* (Vector3 *) RING_API_GETCPOINTER(2,"Vector3"), (float ) RING_API_GETNUMBER(3),* (Color *) RING_API_GETCPOINTER(4,"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(4))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(4,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -5817,4 +5837,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("meshbinormals",ring_MeshBinormals);
ring_vm_funcregister("drawmodel",ring_DrawModel);
ring_vm_funcregister("drawmodelex",ring_DrawModelEx);
+ ring_vm_funcregister("drawmodelwires",ring_DrawModelWires);
}
