Vladimír Vondruš
733d417feb
Platform: testing for wheel events.
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š
524e8a96a4
package/archlinux: enable EmscriptenApplication.
7 years ago
Squareys
62e74ea324
dox: Link to building-doc from developer guide
...
Signed-off-by: Squareys <squareys@googlemail.com>
7 years ago
Vladimír Vondruš
aa67673faf
doc: mention EmscriptenApplication everywhere.
7 years ago
Vladimír Vondruš
ed564b525e
Platform: doc++
7 years ago
Vladimír Vondruš
1bd78f9bdf
Platform: move friends into privates.
7 years ago
Vladimír Vondruš
de0d991018
Platform: add EmscriptenApplication::setContainerCssClass().
7 years ago
Vladimír Vondruš
41859d8986
Platform: why is this protected when it's public elsewhere.
7 years ago
Vladimír Vondruš
9ac7c7f182
Platform: test EmscriptenApplication text input.
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š
e7671c0170
Platform: why this is here and not here.
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š
ba1ca34484
Platform: do not redraw all the time in EmscriptenApplicationTest.
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š
562cf677ff
Platform: test initial window size params in GLFW and SDL2 apps.
7 years ago
Vladimír Vondruš
5ddd3a6d40
Platform: test also key release events in EmscriptenApplication.
7 years ago
Vladimír Vondruš
e64adb73a8
Platform: test explicitly enabled extensions in EmscriptenApplication.
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š
4c8ac4f389
Platform: those flags are not flags, damnit.
...
Took me an hour to figure out. Argh.
7 years ago
Vladimír Vondruš
e1e1da99f7
Platform: it's good to enable exts by default in EmscriptenApp.
7 years ago
Vladimír Vondruš
f2fb0b3da3
Platform: fix build on Emscripten 1.38.17 and newer.
7 years ago
Vladimír Vondruš
e375fac168
Platform: properly define enum operators for all EmscriptenApp flags.
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š
251e858d5b
Platform: the EmscriptenApplication destructor doesn't need to be virtual.
7 years ago
Vladimír Vondruš
9c8dfbccc0
Platform: hide Emscripten forward declarations from Doxygen.
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
Vladimír Vondruš
cf1c78f93c
GL: ffs, a time query and nowhere it mentions *what* is the time unit.
7 years ago
Vladimír Vondruš
55960fb0b4
Animation: use float literals everywhere.
...
Makes it easier to copypaste into GLSL ES.
7 years ago
Vladimír Vondruš
b11873b975
doc: updated changelog.
7 years ago
Vladimír Vondruš
cdb69423ec
Audio: minor cleanup, rename Buffer::length() to sampleCount().
...
* use Magnum types in public API
* make getters const consistently to Source getters
* Buffer::length() could be confused with size(), rename it to make it
more explicit.
7 years ago
Guillaume Jacquemin
8029abca07
Audio: add support for buffer loop points.
...
This feature requires the AL_SOFT_loop_points extension.
7 years ago
Guillaume Jacquemin
f5302edcc1
Audio: add getters to Buffer.
7 years ago
Vladimír Vondruš
f7a2694390
SceneGraph: expose Type typedef and Dimensions constant everywhere.
7 years ago
Vladimír Vondruš
1253a60046
Math: doc++
7 years ago
Vladimír Vondruš
4b1c76411e
doc: updated changelog.
7 years ago
Vladimír Vondruš
e3eebd34b7
Add templated Image{,View,Data}::pixels().
...
It's potentially dangerous because the user is responsible for choosing
a correct type, on the other hand forcing them to do it verbosely
through arrayCast() is both too annoying and too hard to explain.
7 years ago
Vladimír Vondruš
a6df7493bb
doc: remove info about the Ubuntu PPA from building docs.
...
Last version there is 2018.04 and it only lures people into installing
an outdated version.
7 years ago
Vladimír Vondruš
0cb4ded506
Shaders: add normal texture support to Phong.
...
Note -- since there are no visual tests for Phong yet, this is done in
the least intrusive manner to avoid breaking current functionality. It's
likely very underperforming due to the matric calculation per fragment,
it'll get optimized once I have proper tests.
7 years ago
Vladimír Vondruš
528e3822dc
Shaders: added Tangent generic vertex attribute.
7 years ago
Vladimír Vondruš
904a63f33b
MeshTools: make generateSmoothNormals() working with NaNs.
7 years ago
Vladimír Vondruš
77abf4a47c
doc: update changelog.
7 years ago
Vladimír Vondruš
5d2cf7ef93
MeshTools: ability to generate smooth normals in compile().
7 years ago
Vladimír Vondruš
ba048cd2db
MeshTools: cache angles and cross product in generateSmoothNormals().
...
It allocates one more array, but that speeds up the calculation to twice
as fast. Before the benchmark was around 1 ms for flat normals and 12 ms
for smooth, now it's 6 ms for smooth. There is probably more I could do
(I feel like I could save at least one more normalization), however this
is good enough for now.
7 years ago