Update RingRayLib - raylib.c - Add Function : void ImageFlipVertical(Image *image)
@@ -3321,6 +3321,20 @@ RING_FUNC(ring_ImageDrawTextEx)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(7,"Color"));
}
+
+RING_FUNC(ring_ImageFlipVertical)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageFlipVertical((Image *) RING_API_GETCPOINTER(1,"Image"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3524,4 +3538,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagedrawrectanglelines",ring_ImageDrawRectangleLines);
ring_vm_funcregister("imagedrawtext",ring_ImageDrawText);
ring_vm_funcregister("imagedrawtextex",ring_ImageDrawTextEx);
+ ring_vm_funcregister("imageflipvertical",ring_ImageFlipVertical);
}
