mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +00:00
[HTML5] Add WebGL2 (GLES3) support using the OpenGL renderer.
Note, the editor build requires the mbedtls module to be manually enabled, as it is currently needed as a ResourceUID dependency. This will need to be addressed in a separate PR.
This commit is contained in:
parent
42f8bfaff0
commit
46fdba5f8b
9 changed files with 80 additions and 85 deletions
|
|
@ -51,6 +51,10 @@ private:
|
|||
};
|
||||
JSKeyEvent key_event;
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE webgl_ctx = 0;
|
||||
#endif
|
||||
|
||||
WindowMode window_mode = WINDOW_MODE_WINDOWED;
|
||||
ObjectID window_attached_instance_id = {};
|
||||
|
||||
|
|
@ -72,8 +76,6 @@ private:
|
|||
bool swap_cancel_ok = false;
|
||||
|
||||
// utilities
|
||||
static void focus_canvas();
|
||||
static bool is_canvas_focused();
|
||||
static void dom2godot_mod(Ref<InputEventWithModifiers> ev, int p_mod);
|
||||
static const char *godot2dom_cursor(DisplayServer::CursorShape p_shape);
|
||||
|
||||
|
|
@ -121,6 +123,7 @@ public:
|
|||
// mouse
|
||||
virtual void mouse_set_mode(MouseMode p_mode) override;
|
||||
virtual MouseMode mouse_get_mode() const override;
|
||||
virtual Point2i mouse_get_position() const override;
|
||||
|
||||
// touch
|
||||
virtual bool screen_is_touchscreen(int p_screen = SCREEN_OF_MAIN_WINDOW) const override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue