Update RingRayLib - raylib.c - Add Function : void ImageAlphaPremultiply(Image *image)
@@ -2976,6 +2976,20 @@ RING_FUNC(ring_ImageAlphaCrop)
ImageAlphaCrop((Image *) RING_API_GETCPOINTER(1,"Image"), (float ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_ImageAlphaPremultiply)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageAlphaPremultiply((Image *) RING_API_GETCPOINTER(1,"Image"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3164,4 +3178,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagealphamask",ring_ImageAlphaMask);
ring_vm_funcregister("imagealphaclear",ring_ImageAlphaClear);
ring_vm_funcregister("imagealphacrop",ring_ImageAlphaCrop);
+ ring_vm_funcregister("imagealphapremultiply",ring_ImageAlphaPremultiply);
}
