Squareys
6e5f6b8858
Platform: light-weight main loop for EmscriptenApplication
...
Signed-off-by: Squareys <squareys@googlemail.com>
7 years ago
Squareys
cc28453332
Platform: Fix UTF8 text input in EmscriptenApplication
...
Signed-off-by: Squareys <squareys@googlemail.com>
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
7 years ago
Vladimír Vondruš
de0d991018
Platform: add EmscriptenApplication::setContainerCssClass().
7 years ago
Vladimír Vondruš
ac0d6987ad
Platform: actually properly destroy the WebGL context after.
...
And expose it to the users.
7 years ago
Vladimír Vondruš
e0019f511c
Platform: this is all wrong anyway and mainLoopIteration() is useless.
...
The exec() should return int to be API-compatible with other
implementations.
7 years ago
Vladimír Vondruš
1aa4989e5e
Platform: expose raw event structures in EmscriptenApplication.
...
Also store them as references and not pointers.
7 years ago
Vladimír Vondruš
8254e16c91
Platform: rework DPI awareness and resize event in EmscriptenApp.
...
By mistake I thought it's the same as in Emscripten's SDL, but there
Emscripten does some emulation to ensure windowSize() ==
framebufferSize().
For the resize event it's possible to hook into the window resize
callback instead of polling for the size every frame, That's much more
efficient.
7 years ago
Vladimír Vondruš
b28ac4667d
Platform: no need to reinterpret_cast the void pointers.
7 years ago
Vladimír Vondruš
fd137f3cf1
Platform: make EmscriptenApplication work correctly w/o TARGET_GL.
7 years ago
Vladimír Vondruš
fc4860e30a
Platform: give the docs the love they deserve.
7 years ago
Vladimír Vondruš
73e0199696
Platform: well, these OTOH *don't* need to be flags.
7 years ago
Vladimír Vondruš
f2fb0b3da3
Platform: fix build on Emscripten 1.38.17 and newer.
7 years ago
Vladimír Vondruš
173a87eaf4
Platform: none of EmscriptenApplication constructors were defined.
...
... when compiling w/o TARGET_GL.
7 years ago
Vladimír Vondruš
2952a19287
Platform: various minor EmscriptenApplication cleanup.
7 years ago
Squareys
b970b4d247
Platform: Add initial EmscriptenApplication
...
Signed-off-by: Squareys <squareys@googlemail.com>
7 years ago