diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-10 16:22:48 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-11 07:56:10 +0100 |
commit | 3366122e1aecf46c668e47d8c40041b53d247dc0 (patch) | |
tree | 54b9ed59bffc96bf32fe78f2ef522a008c630957 /platform/javascript/godot_js.h | |
parent | e9e2dedb7639d57cea9d4764efdf292a5154b86e (diff) | |
download | redot-engine-3366122e1aecf46c668e47d8c40041b53d247dc0.tar.gz |
[HTML5] Handle contextmenu, webglcontextlost internally.
This way they are automatically cleaned up when the engine exits,
landing a hand to browsers garbage collectors.
Diffstat (limited to 'platform/javascript/godot_js.h')
-rw-r--r-- | platform/javascript/godot_js.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/godot_js.h b/platform/javascript/godot_js.h index 0006848756..e8f41d4cae 100644 --- a/platform/javascript/godot_js.h +++ b/platform/javascript/godot_js.h @@ -86,6 +86,7 @@ extern int godot_js_display_gamepad_sample_get(int p_idx, float r_btns[16], int3 extern void godot_js_display_notification_cb(void (*p_callback)(int p_notification), int p_enter, int p_exit, int p_in, int p_out); extern void godot_js_display_paste_cb(void (*p_callback)(const char *p_text)); extern void godot_js_display_drop_files_cb(void (*p_callback)(char **p_filev, int p_filec)); +extern void godot_js_display_setup_canvas(); #ifdef __cplusplus } #endif |