Update RingRayLib - raylib.c - Add Function : void ImageColorTint(Image *image, Color color)
@@ -3377,6 +3377,22 @@ RING_FUNC(ring_ImageRotateCCW)
ImageRotateCCW((Image *) RING_API_GETCPOINTER(1,"Image"));
}
+
+RING_FUNC(ring_ImageColorTint)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageColorTint((Image *) RING_API_GETCPOINTER(1,"Image"),* (Color *) RING_API_GETCPOINTER(2,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3584,4 +3600,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagefliphorizontal",ring_ImageFlipHorizontal);
ring_vm_funcregister("imagerotatecw",ring_ImageRotateCW);
ring_vm_funcregister("imagerotateccw",ring_ImageRotateCCW);
+ ring_vm_funcregister("imagecolortint",ring_ImageColorTint);
}
