Vladimír Vondruš
ad22f463fb
Platform: add {Sdl2,Glfw,Emscripten}Application::setWindowTitle().
...
On Emscripten as well, however I'm keeping the Configuration::setTitle()
a no-op because the title is usually set by the HTML markup already and
so dynamic code implicitly changing it to something else doesn't make
much sense.
7 years ago
Vladimír Vondruš
466c3bb957
Platform: why the heck was this missing from EmscriptenApplication?
7 years ago
Vladimír Vondruš
cf7d2a487f
Platform: actually properly redraw after EmscriptenApp::viewportEvent().
...
This is getting ridiculous, eh. How did I test this stuff, actually?
7 years ago
Vladimír Vondruš
384fd5c363
Platform: fix EmscriptenApp::setContainerCssClass() to fire viewport event.
...
The code was taken straight from Sdl2Application where it assumed the
main render loop polls for canvas size changes and so it would pick it
up automagically. Not the case here, so the viewport event was never
fired after this.
7 years ago
Vladimír Vondruš
4c6ebeeef4
Platform: doc++
7 years ago
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