Update RingRayLib - raylib.c - Add Function : void DrawRectangleV(Vector2 position, Vector2 size, Color color)
@@ -2074,6 +2074,22 @@ RING_FUNC(ring_DrawRectangle)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
}
+
+RING_FUNC(ring_DrawRectangleV)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ DrawRectangleV(* (Vector2 *) RING_API_GETCPOINTER(1,"Vector2"),* (Vector2 *) RING_API_GETCPOINTER(2,"Vector2"),* (Color *) RING_API_GETCPOINTER(3,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Vector2"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Vector2"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -2215,4 +2231,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("drawring",ring_DrawRing);
ring_vm_funcregister("drawringlines",ring_DrawRingLines);
ring_vm_funcregister("drawrectangle",ring_DrawRectangle);
+ ring_vm_funcregister("drawrectanglev",ring_DrawRectangleV);
}
