Update RingRayLib - raylib.c - Add Function : void SetTextureWrap(Texture2D texture, int wrapMode)
@@ -3739,6 +3739,22 @@ RING_FUNC(ring_SetTextureFilter)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Texture2D"));
}
+
+RING_FUNC(ring_SetTextureWrap)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ SetTextureWrap(* (Texture2D *) RING_API_GETCPOINTER(1,"Texture2D"), (int ) RING_API_GETNUMBER(2));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Texture2D"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3962,4 +3978,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("genimagecellular",ring_GenImageCellular);
ring_vm_funcregister("gentexturemipmaps",ring_GenTextureMipmaps);
ring_vm_funcregister("settexturefilter",ring_SetTextureFilter);
+ ring_vm_funcregister("settexturewrap",ring_SetTextureWrap);
}
