Update RingRayLib - raylib.c - Add Function : void SetTraceLogLevel(int logType)
@@ -709,6 +709,20 @@ RING_FUNC(ring_SetConfigFlags)
SetConfigFlags( (unsigned char ) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_SetTraceLogLevel)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ SetTraceLogLevel( (int ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -766,4 +780,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("getcolor",ring_GetColor);
ring_vm_funcregister("fade",ring_Fade);
ring_vm_funcregister("setconfigflags",ring_SetConfigFlags);
+ ring_vm_funcregister("settraceloglevel",ring_SetTraceLogLevel);
}
