Update RingRayLib - raylib.c - Add Function : void SetWindowTitle(const char *title)
@@ -129,6 +129,20 @@ RING_FUNC(ring_SetWindowIcon)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Image"));
}
+
+RING_FUNC(ring_SetWindowTitle)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ SetWindowTitle(RING_API_GETSTRING(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -142,4 +156,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("unhidewindow",ring_UnhideWindow);
ring_vm_funcregister("hidewindow",ring_HideWindow);
ring_vm_funcregister("setwindowicon",ring_SetWindowIcon);
+ ring_vm_funcregister("setwindowtitle",ring_SetWindowTitle);
}
