IRTNITBTFGRDW
This commit is contained in:
parent
22afdb20a4
commit
0d269b83e3
6 changed files with 143 additions and 340 deletions
28
game/suic_app.c
Normal file
28
game/suic_app.c
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#include "suic_app.h"
|
||||
#include "../libsuicmez/libsuicmez.h"
|
||||
#include "runtime.h"
|
||||
|
||||
void suic_app_init(int width, int height, const char* title) {
|
||||
suic_init_window(width, height, (char*)title);
|
||||
suic_set_target_fps(120);
|
||||
suic_disable_cursor();
|
||||
}
|
||||
|
||||
bool suic_app_should_close(void) {
|
||||
return suic_window_should_close();
|
||||
}
|
||||
|
||||
void suic_app_frame_begin(void) {
|
||||
suic_begin_drawing();
|
||||
suic_clear_background(135, 206, 235, 255);
|
||||
}
|
||||
|
||||
void suic_app_frame_end(void) {
|
||||
draw_fps(10, 40);
|
||||
suic_end_drawing();
|
||||
}
|
||||
|
||||
void suic_app_shutdown(void) {
|
||||
suic_close_window();
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue