1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Remove GLUT usage in HTML5 platform

This commit is contained in:
L. Krause
2017-04-27 15:34:46 +02:00
parent 5993a5fac9
commit 847bd33fdf
3 changed files with 27 additions and 75 deletions

View File

@@ -45,16 +45,10 @@
#include <emscripten/html5.h>
typedef void (*GFXInitFunc)(void *ud, bool gl2, int w, int h, bool fs);
typedef String (*GetDataDirFunc)();
class OS_JavaScript : public OS_Unix {
GFXInitFunc gfx_init_func;
void *gfx_init_ud;
bool use_gl2;
int64_t time_to_save_sync;
int64_t last_sync_time;
@@ -167,7 +161,7 @@ public:
virtual int get_power_seconds_left();
virtual int get_power_percent_left();
OS_JavaScript(const char *p_execpath, GFXInitFunc p_gfx_init_func, void *p_gfx_init_ud, GetDataDirFunc p_get_data_dir_func);
OS_JavaScript(const char *p_execpath, GetDataDirFunc p_get_data_dir_func);
~OS_JavaScript();
};