Update RingRayLib - raylib.c - Add Function : void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color)
@@ -2272,6 +2272,32 @@ RING_FUNC(ring_DrawRectangleRounded)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(4,"Color"));
}
+
+RING_FUNC(ring_DrawRectangleRoundedLines)
+{
+ 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 ;
+ }
+ DrawRectangleRoundedLines(* (Rectangle *) RING_API_GETCPOINTER(1,"Rectangle"), (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,"Rectangle"));
+ 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);
@@ -2422,4 +2448,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("drawrectanglelines",ring_DrawRectangleLines);
ring_vm_funcregister("drawrectanglelinesex",ring_DrawRectangleLinesEx);
ring_vm_funcregister("drawrectanglerounded",ring_DrawRectangleRounded);
+ ring_vm_funcregister("drawrectangleroundedlines",ring_DrawRectangleRoundedLines);
}
