Update RingRayLib - raylib.c - Add Function : void BeginMode3D(Camera3D camera)
@@ -449,6 +449,18 @@ RING_FUNC(ring_EndMode2D)
EndMode2D();
}
+
+RING_FUNC(ring_BeginMode3D)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ BeginMode3D(* (Camera3D *) RING_API_GETCPOINTER(1,"Camera3D"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Camera3D"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -488,4 +500,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("enddrawing",ring_EndDrawing);
ring_vm_funcregister("beginmode2d",ring_BeginMode2D);
ring_vm_funcregister("endmode2d",ring_EndMode2D);
+ ring_vm_funcregister("beginmode3d",ring_BeginMode3D);
}
