window: window_fps_vsync

main
Dominik Madarász 2024-07-31 13:54:29 +02:00
parent 1ea72bc372
commit 58f36fddf1
6 changed files with 16 additions and 0 deletions

View File

@ -2147,6 +2147,7 @@ enum WINDOW_FLAGS {
double window_fps_target();
void window_fps_lock(float fps);
void window_fps_unlock();
void window_fps_vsync(int vsync);
void window_screenshot(const char* outfile_png);
int window_record(const char *outfile_mp4);
vec2 window_dpi();

View File

@ -18838,6 +18838,7 @@ API double window_fps();
API double window_fps_target();
API void window_fps_lock(float fps);
API void window_fps_unlock();
API void window_fps_vsync(int vsync);
API void window_screenshot(const char* outfile_png); // , bool record_cursor
API int window_record(const char *outfile_mp4); // , bool record_cursor
@ -393190,6 +393191,10 @@ double window_fps_target() {
return hz;
}
void window_fps_vsync(int vsync) {
glfwSwapInterval(vsync);
}
uint64_t window_frame() {
return frame_count;
}

View File

@ -792,6 +792,10 @@ double window_fps_target() {
return hz;
}
void window_fps_vsync(int vsync) {
glfwSwapInterval(vsync);
}
uint64_t window_frame() {
return frame_count;
}

View File

@ -78,6 +78,7 @@ API double window_fps();
API double window_fps_target();
API void window_fps_lock(float fps);
API void window_fps_unlock();
API void window_fps_vsync(int vsync);
API void window_screenshot(const char* outfile_png); // , bool record_cursor
API int window_record(const char *outfile_mp4); // , bool record_cursor

View File

@ -27713,6 +27713,10 @@ double window_fps_target() {
return hz;
}
void window_fps_vsync(int vsync) {
glfwSwapInterval(vsync);
}
uint64_t window_frame() {
return frame_count;
}

View File

@ -4905,6 +4905,7 @@ API double window_fps();
API double window_fps_target();
API void window_fps_lock(float fps);
API void window_fps_unlock();
API void window_fps_vsync(int vsync);
API void window_screenshot(const char* outfile_png); // , bool record_cursor
API int window_record(const char *outfile_mp4); // , bool record_cursor