Update RingRayLib - raylib.c - Add Function : bool TextIsEqual(const char *text1, const char *text2)
@@ -4302,6 +4302,24 @@ RING_FUNC(ring_GetNextCodepoint)
RING_API_ACCEPTINTVALUE(2) ;
}
+
+RING_FUNC(ring_TextIsEqual)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(TextIsEqual(RING_API_GETSTRING(1),RING_API_GETSTRING(2)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -4549,4 +4567,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("measuretextex",ring_MeasureTextEx);
ring_vm_funcregister("getglyphindex",ring_GetGlyphIndex);
ring_vm_funcregister("getnextcodepoint",ring_GetNextCodepoint);
+ ring_vm_funcregister("textisequal",ring_TextIsEqual);
}
