Update RingRayLib - raylib.c - Add Function : void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint)
@@ -3855,6 +3855,30 @@ RING_FUNC(ring_DrawTextureQuad)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
}
+
+RING_FUNC(ring_DrawTexturePro)
+{
+ if ( RING_API_PARACOUNT != 6 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ DrawTexturePro(* (Texture2D *) RING_API_GETCPOINTER(1,"Texture2D"),* (Rectangle *) RING_API_GETCPOINTER(2,"Rectangle"),* (Rectangle *) RING_API_GETCPOINTER(3,"Rectangle"),* (Vector2 *) RING_API_GETCPOINTER(4,"Vector2"), (float ) RING_API_GETNUMBER(5),* (Color *) RING_API_GETCPOINTER(6,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Texture2D"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Rectangle"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Rectangle"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(4))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(4,"Vector2"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(6))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(6,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -4084,4 +4108,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("drawtextureex",ring_DrawTextureEx);
ring_vm_funcregister("drawtexturerec",ring_DrawTextureRec);
ring_vm_funcregister("drawtexturequad",ring_DrawTextureQuad);
+ ring_vm_funcregister("drawtexturepro",ring_DrawTexturePro);
}
