Update RingRayLib - raylib.c - Add Function : void DrawLineV(Vector2 startPos, Vector2 endPos, Color color)
@@ -1750,6 +1750,22 @@ RING_FUNC(ring_DrawLine)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
}
+
+RING_FUNC(ring_DrawLineV)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ DrawLineV(* (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);
@@ -1878,4 +1894,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("drawpixel",ring_DrawPixel);
ring_vm_funcregister("drawpixelv",ring_DrawPixelV);
ring_vm_funcregister("drawline",ring_DrawLine);
+ ring_vm_funcregister("drawlinev",ring_DrawLineV);
}
