Update RingRayLib - raylib.c - Add Function : void ImageColorBrightness(Image *image, int brightness)
@@ -3439,6 +3439,24 @@ RING_FUNC(ring_ImageColorContrast)
ImageColorContrast((Image *) RING_API_GETCPOINTER(1,"Image"), (float ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_ImageColorBrightness)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageColorBrightness((Image *) RING_API_GETCPOINTER(1,"Image"), (int ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3650,4 +3668,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagecolorinvert",ring_ImageColorInvert);
ring_vm_funcregister("imagecolorgrayscale",ring_ImageColorGrayscale);
ring_vm_funcregister("imagecolorcontrast",ring_ImageColorContrast);
+ ring_vm_funcregister("imagecolorbrightness",ring_ImageColorBrightness);
}
