add window_destroy()
parent
926a48bc50
commit
92ccaaf25d
|
@ -2058,6 +2058,7 @@ enum WINDOW_FLAGS {
|
||||||
};
|
};
|
||||||
bool window_create(float scale, unsigned flags);
|
bool window_create(float scale, unsigned flags);
|
||||||
bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
||||||
|
void window_destroy();
|
||||||
void window_reload();
|
void window_reload();
|
||||||
int window_frame_begin();
|
int window_frame_begin();
|
||||||
void window_frame_end();
|
void window_frame_end();
|
||||||
|
|
|
@ -18721,6 +18721,7 @@ enum WINDOW_FLAGS {
|
||||||
|
|
||||||
API bool window_create(float scale, unsigned flags);
|
API bool window_create(float scale, unsigned flags);
|
||||||
API bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
API bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
||||||
|
API void window_destroy();
|
||||||
API void window_reload();
|
API void window_reload();
|
||||||
|
|
||||||
API int window_frame_begin();
|
API int window_frame_begin();
|
||||||
|
@ -391678,6 +391679,12 @@ bool window_create(float scale, unsigned flags) {
|
||||||
return window_create_from_handle(NULL, scale, flags);
|
return window_create_from_handle(NULL, scale, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void window_destroy() {
|
||||||
|
if( !window ) return;
|
||||||
|
|
||||||
|
glfwSetWindowShouldClose(window, GL_TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
static double boot_time = 0;
|
static double boot_time = 0;
|
||||||
|
|
||||||
char* window_stats() {
|
char* window_stats() {
|
||||||
|
@ -391857,6 +391864,7 @@ void window_shutdown() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
window_loop_exit(); // finish emscripten loop automatically
|
window_loop_exit(); // finish emscripten loop automatically
|
||||||
|
glfwTerminate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -495,6 +495,12 @@ bool window_create(float scale, unsigned flags) {
|
||||||
return window_create_from_handle(NULL, scale, flags);
|
return window_create_from_handle(NULL, scale, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void window_destroy() {
|
||||||
|
if( !window ) return;
|
||||||
|
|
||||||
|
glfwSetWindowShouldClose(window, GL_TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
static double boot_time = 0;
|
static double boot_time = 0;
|
||||||
|
|
||||||
char* window_stats() {
|
char* window_stats() {
|
||||||
|
@ -674,6 +680,7 @@ void window_shutdown() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
window_loop_exit(); // finish emscripten loop automatically
|
window_loop_exit(); // finish emscripten loop automatically
|
||||||
|
glfwTerminate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ enum WINDOW_FLAGS {
|
||||||
|
|
||||||
API bool window_create(float scale, unsigned flags);
|
API bool window_create(float scale, unsigned flags);
|
||||||
API bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
API bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
||||||
|
API void window_destroy();
|
||||||
API void window_reload();
|
API void window_reload();
|
||||||
|
|
||||||
API int window_frame_begin();
|
API int window_frame_begin();
|
||||||
|
|
|
@ -26859,6 +26859,12 @@ bool window_create(float scale, unsigned flags) {
|
||||||
return window_create_from_handle(NULL, scale, flags);
|
return window_create_from_handle(NULL, scale, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void window_destroy() {
|
||||||
|
if( !window ) return;
|
||||||
|
|
||||||
|
glfwSetWindowShouldClose(window, GL_TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
static double boot_time = 0;
|
static double boot_time = 0;
|
||||||
|
|
||||||
char* window_stats() {
|
char* window_stats() {
|
||||||
|
@ -27038,6 +27044,7 @@ void window_shutdown() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
window_loop_exit(); // finish emscripten loop automatically
|
window_loop_exit(); // finish emscripten loop automatically
|
||||||
|
glfwTerminate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4788,6 +4788,7 @@ enum WINDOW_FLAGS {
|
||||||
|
|
||||||
API bool window_create(float scale, unsigned flags);
|
API bool window_create(float scale, unsigned flags);
|
||||||
API bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
API bool window_create_from_handle(void *handle, float scale, unsigned flags);
|
||||||
|
API void window_destroy();
|
||||||
API void window_reload();
|
API void window_reload();
|
||||||
|
|
||||||
API int window_frame_begin();
|
API int window_frame_begin();
|
||||||
|
|
Loading…
Reference in New Issue