WindowShouldClose and custom main loop example.
This commit is contained in:
12
src/core.c
12
src/core.c
@@ -54,6 +54,18 @@ int lcoreCloseWindow( lua_State* L ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
> RL.WindowShouldClose()
|
||||
|
||||
Check if application should close (KEY_ESCAPE pressed or windows close icon clicked).
|
||||
Note! Not needed unless you want to make custom main loop
|
||||
*/
|
||||
int lcoreWindowShouldClose( lua_State* L ) {
|
||||
lua_pushboolean( L, WindowShouldClose() );
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
> state = RL.IsWindowReady()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user