Update RingRayLib - raylib.c - Add Function : void ImageResizeNN(Image *image, int newWidth,int newHeight)
@@ -3028,6 +3028,28 @@ RING_FUNC(ring_ImageResize)
ImageResize((Image *) RING_API_GETCPOINTER(1,"Image"), (int ) RING_API_GETNUMBER(2), (int ) RING_API_GETNUMBER(3));
}
+
+RING_FUNC(ring_ImageResizeNN)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageResizeNN((Image *) RING_API_GETCPOINTER(1,"Image"), (int ) RING_API_GETNUMBER(2), (int ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3219,4 +3241,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagealphapremultiply",ring_ImageAlphaPremultiply);
ring_vm_funcregister("imagecrop",ring_ImageCrop);
ring_vm_funcregister("imageresize",ring_ImageResize);
+ ring_vm_funcregister("imageresizenn",ring_ImageResizeNN);
}
