28 lines
612 B
C
28 lines
612 B
C
#include "suic_app.h"
|
|
#include "../../libsuicmez/libsuicmez.h"
|
|
// #include "runtime.h" // Not available
|
|
|
|
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) {
|
|
suic_draw_fps(10, 40);
|
|
suic_end_drawing();
|
|
}
|
|
|
|
void suic_app_shutdown(void) {
|
|
suic_close_window();
|
|
}
|
|
|