Update RingRayLib - raylib.c - Add Function : Mesh *LoadMeshes(const char *fileName, int *meshCount)
@@ -4958,6 +4958,25 @@ RING_FUNC(ring_UnloadModel)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Model"));
}
+
+RING_FUNC(ring_LoadMeshes)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETCPOINTER(LoadMeshes(RING_API_GETSTRING(1),RING_API_GETINTPOINTER(2)),"Mesh");
+ RING_API_ACCEPTINTVALUE(2) ;
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -5239,4 +5258,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("loadmodel",ring_LoadModel);
ring_vm_funcregister("loadmodelfrommesh",ring_LoadModelFromMesh);
ring_vm_funcregister("unloadmodel",ring_UnloadModel);
+ ring_vm_funcregister("loadmeshes",ring_LoadMeshes);
}
