1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add fullscreen features in web export

- Implement fullscreen control, get_window_size, get_screen_size
 - Fix fullscreen resolution
This commit is contained in:
eska
2016-12-04 02:41:50 +01:00
parent 49e22aa83f
commit 17422f1f86
2 changed files with 101 additions and 38 deletions

View File

@@ -80,7 +80,7 @@ private:
const char* gl_extensions;
InputDefault *input;
VideoMode default_videomode;
VideoMode video_mode;
MainLoop * main_loop;
GetDataDirFunc get_data_dir_func;
@@ -135,7 +135,12 @@ public:
virtual VideoMode get_video_mode(int p_screen=0) const;
virtual void get_fullscreen_mode_list(List<VideoMode> *p_list,int p_screen=0) const;
virtual Size2 get_screen_size(int p_screen=0) const;
virtual Size2 get_window_size() const;
virtual void set_window_fullscreen(bool p_enable);
virtual bool is_window_fullscreen() const;
virtual String get_name();
virtual MainLoop *get_main_loop() const;
@@ -153,7 +158,6 @@ public:
virtual bool has_touchscreen_ui_hint() const;
void set_opengl_extensions(const char* p_gl_extensions);
void set_display_size(Size2 p_size);
void reload_gfx();