Update RingRayLib - raylib.c - Add Function : void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint)
@@ -3793,6 +3793,30 @@ RING_FUNC(ring_DrawTextureV)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Color"));
}
+
+RING_FUNC(ring_DrawTextureEx)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ DrawTextureEx(* (Texture2D *) RING_API_GETCPOINTER(1,"Texture2D"),* (Vector2 *) RING_API_GETCPOINTER(2,"Vector2"), (float ) RING_API_GETNUMBER(3), (float ) RING_API_GETNUMBER(4),* (Color *) RING_API_GETCPOINTER(5,"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,"Vector2"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(5))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -4019,4 +4043,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("settexturewrap",ring_SetTextureWrap);
ring_vm_funcregister("drawtexture",ring_DrawTexture);
ring_vm_funcregister("drawtexturev",ring_DrawTextureV);
+ ring_vm_funcregister("drawtextureex",ring_DrawTextureEx);
}
