Update RingRayLib - raylib.c - Add Function : Vector4 *GetImageDataNormalized(Image image)
@@ -2789,6 +2789,18 @@ RING_FUNC(ring_GetImageData)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Image"));
}
+
+RING_FUNC(ring_GetImageDataNormalized)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ RING_API_RETCPOINTER(GetImageDataNormalized(* (Image *) RING_API_GETCPOINTER(1,"Image")),"Vector4");
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Image"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -2966,4 +2978,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("unloadtexture",ring_UnloadTexture);
ring_vm_funcregister("unloadrendertexture",ring_UnloadRenderTexture);
ring_vm_funcregister("getimagedata",ring_GetImageData);
+ ring_vm_funcregister("getimagedatanormalized",ring_GetImageDataNormalized);
}
