Update RingRayLib - raylib.c - Add Function : void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color)
@@ -4764,6 +4764,32 @@ RING_FUNC(ring_DrawSphereEx)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
}
+
+RING_FUNC(ring_DrawSphereWires)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ DrawSphereWires(* (Vector3 *) RING_API_GETCPOINTER(1,"Vector3"), (float ) RING_API_GETNUMBER(2), (int ) RING_API_GETNUMBER(3), (int ) RING_API_GETNUMBER(4),* (Color *) RING_API_GETCPOINTER(5,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Vector3"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(5))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -5035,4 +5061,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("drawcubetexture",ring_DrawCubeTexture);
ring_vm_funcregister("drawsphere",ring_DrawSphere);
ring_vm_funcregister("drawsphereex",ring_DrawSphereEx);
+ ring_vm_funcregister("drawspherewires",ring_DrawSphereWires);
}
