Update RingRayLib - raylib.c - Add Function : void ImageColorInvert(Image *image)
@@ -3393,6 +3393,20 @@ RING_FUNC(ring_ImageColorTint)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Color"));
}
+
+RING_FUNC(ring_ImageColorInvert)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageColorInvert((Image *) RING_API_GETCPOINTER(1,"Image"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3601,4 +3615,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagerotatecw",ring_ImageRotateCW);
ring_vm_funcregister("imagerotateccw",ring_ImageRotateCCW);
ring_vm_funcregister("imagecolortint",ring_ImageColorTint);
+ ring_vm_funcregister("imagecolorinvert",ring_ImageColorInvert);
}
