Update RingRayLib - raylib.c - Add Function : Image GenImageCellular(int width, int height, int tileSize)
@@ -3682,6 +3682,33 @@ RING_FUNC(ring_GenImagePerlinNoise)
}
}
+
+RING_FUNC(ring_GenImageCellular)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(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 ;
+ }
+ {
+ Image *pValue ;
+ pValue = (Image *) ring_state_malloc(((VM *) pPointer)->pRingState,sizeof(Image)) ;
+ *pValue = GenImageCellular( (int ) RING_API_GETNUMBER(1), (int ) RING_API_GETNUMBER(2), (int ) RING_API_GETNUMBER(3));
+ RING_API_RETMANAGEDCPOINTER(pValue,"Image",ring_state_free);
+ }
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3902,4 +3929,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("genimagechecked",ring_GenImageChecked);
ring_vm_funcregister("genimagewhitenoise",ring_GenImageWhiteNoise);
ring_vm_funcregister("genimageperlinnoise",ring_GenImagePerlinNoise);
+ ring_vm_funcregister("genimagecellular",ring_GenImageCellular);
}
