Update RingRayLib - raylib.c - Add Function : void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color)
@@ -3241,6 +3241,28 @@ RING_FUNC(ring_ImageDrawRectangle)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Color"));
}
+
+RING_FUNC(ring_ImageDrawRectangleLines)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageDrawRectangleLines((Image *) RING_API_GETCPOINTER(1,"Image"),* (Rectangle *) RING_API_GETCPOINTER(2,"Rectangle"), (int ) RING_API_GETNUMBER(3),* (Color *) RING_API_GETCPOINTER(4,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Rectangle"));
+ 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);
@@ -3441,4 +3463,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagetextex",ring_ImageTextEx);
ring_vm_funcregister("imagedraw",ring_ImageDraw);
ring_vm_funcregister("imagedrawrectangle",ring_ImageDrawRectangle);
+ ring_vm_funcregister("imagedrawrectanglelines",ring_ImageDrawRectangleLines);
}
