Update RingRayLib - raylib.c - Add Function : void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color)
@@ -3289,6 +3289,38 @@ RING_FUNC(ring_ImageDrawText)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
}
+
+RING_FUNC(ring_ImageDrawTextEx)
+{
+ if ( RING_API_PARACOUNT != 7 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(6) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageDrawTextEx((Image *) RING_API_GETCPOINTER(1,"Image"),* (Vector2 *) RING_API_GETCPOINTER(2,"Vector2"),* (Font *) RING_API_GETCPOINTER(3,"Font"),RING_API_GETSTRING(4), (float ) RING_API_GETNUMBER(5), (float ) RING_API_GETNUMBER(6),* (Color *) RING_API_GETCPOINTER(7,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Vector2"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Font"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(7))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(7,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3491,4 +3523,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagedrawrectangle",ring_ImageDrawRectangle);
ring_vm_funcregister("imagedrawrectanglelines",ring_ImageDrawRectangleLines);
ring_vm_funcregister("imagedrawtext",ring_ImageDrawText);
+ ring_vm_funcregister("imagedrawtextex",ring_ImageDrawTextEx);
}
