Vladimír Vondruš
24dc1cda00
doc: update changelog.
3 years ago
Vladimír Vondruš
c7d0f86280
Platform: drop another compatibility branch for old Emscripten.
3 years ago
Vladimír Vondruš
e34933646f
package/archlinux: use rsync to copy cached headers on Emscripten.
...
The builtin Emscripten functionality doesn't preserve timestamps,
causing a full rebuild EVERY DAMN TIME.
3 years ago
Vladimír Vondruš
514d8a83eb
GL: don't attempt to test gl_BaseInstance on WebGL.
...
It's no longer present in the extension :(
3 years ago
Vladimír Vondruš
9ec7f26fae
Revert "Re-add glDrawRangeElements() workaround for Emscripten."
...
This reverts commit 6bb0179c65 from 2018,
which in turn reverted commit f6ba4111e1 ,
which in turn reverted commit 4ce2875262
from 2015. The related Emscripten PR was merged in 2018, so it's safe to
assume everything works as expected nowadays.
Which also means I can finally delete my Emscripten fork that contained
the original branch that attempted to add glDrawRangeElements() in May
2015, before WebGL 2 was even supported in Emscripten, or Firefox.
3 years ago
Vladimír Vondruš
1f9fe3fe20
doc: updated changelog.
3 years ago
Vladimír Vondruš
c9a2752545
Platform: remove deprecated Emscripten event target behavior support.
...
This makes the minimal supported Emscripten version 1.39.5. With some
more effort this could be changed to 1.38.27, but I don't think anybody
needs that.
3 years ago
Vladimír Vondruš
3f0df60417
Platform: properly initialize EmscriptenApplication cursor value.
...
Ugh, why there is always such stupid bugs in these things.
3 years ago
Vladimír Vondruš
25ebe436f1
Platform: use UTF8ToString instead of AsciiToString on Emscripten.
...
AsciiToString is not included by default on 3.1.21+ and including it is
basically impossible on the library side because I don't think they
fixed the case of supplying multiple DEFAULT_LIBRARY_FUNCS_TO_INCLUDE
options on the command line in order to concatenate those lists yet.
Also, given that UTF8ToString is probably already used in other places
since it's included by default, using AsciiToString would only mean
inflating the JS code.
3 years ago
Vladimír Vondruš
e4fd32d580
Test: ASSERTIONS=2 breaks Emscripten's own event handling on 3.1.38+.
...
Using ASSERTIONS=1 until that's fixed.
3 years ago
Vladimír Vondruš
a1bb40b8f9
Require CMake 3.13+ for Emscripten and WebGL 2.
...
And drop all nasty workarounds related to this.
3 years ago
Vladimír Vondruš
abb21fb85d
Platform: wrap certain CMake strings in quotes.
...
Works around an issue in KDE's highlighting module. I should probably
submit a PR fixing this at some point.
3 years ago
Vladimír Vondruš
0fa6fe7292
doc: updated changelog and credits.
3 years ago
Vladimír Vondruš
8c724656d5
package/archlinux: force cache refresh in Emscripten PKGBUILDs.
3 years ago
Vladimír Vondruš
73ab9e0afa
doc: expand Emscripten troubleshooting info with new cursed issues.
3 years ago
Vladimír Vondruš
14477c8c93
Updated toolchains submodule.
3 years ago
Vladimír Vondruš
f5d815f2ea
CMake: the Primitives library needs MeshTools to be built.
...
Went undiscovered until now, when a magnum-extras Android build enabled
Primitives but not MeshTools and then later failed as FindMagnum linked
optional Primitives to (required) MeshTools but those weren't found.
3 years ago
Vladimír Vondruš
eaf3ad21c2
modules: minor.
...
This mistyped variable shouldn't have caused any problem in practice, so
no real bug there.
3 years ago
Vladimír Vondruš
cf3f46217a
package/archlinux: don't run GL tests in Emscripten dev PKGBUILDs.
3 years ago
Vladimír Vondruš
b278f00f77
GL: implement setIndexOffset() directly on the Mesh as well.
...
So far this was only possible by creating a temporary MeshView, while
everything else (index/vertex count, base vertex, base instance, ...)
was changeable directly on the Mesh.
3 years ago
Vladimír Vondruš
5e23f09ffb
GL: test Mesh::indexType() assertion as well.
...
Ugh the code coverage is abysmal here.
3 years ago
Vladimír Vondruš
a7e1394cd9
GL: deprecate Mesh::indexTypeSize() in favor of meshIndexTypeSize().
...
Because it makes no sense to only be able to query the index type size
on a live mesh.
3 years ago
Vladimír Vondruš
78befae123
GL: deprecate MeshView::setIndexRange() in favor of setIndexOffset().
...
The name was CONFUSING every time I tried to use it.
3 years ago
Vladimír Vondruš
62db8b4c52
singles: update changelog.
3 years ago
Vladimír Vondruš
fa079385bf
singles: don't include StrictWeakOrdering in MagnumMath.hpp.
3 years ago
Vladimír Vondruš
54a0754dfa
Math: hide tweakable implementations including the enclosing namespace.
3 years ago
Vladimír Vondruš
b7633c1804
singles: update MagnumMath.hpp.
...
The MSVC2015 and 2017 checks were slightly wrong here again.
3 years ago
Vladimír Vondruš
d602c49b47
Revert "Amazing, now I get swap() conflicts from the other side, F.F.S."
...
The Utility::swap() addition was reverted until a robust solution for
the ambiguity is found.
This reverts commit 3784ca94cf .
3 years ago
Vladimír Vondruš
3784ca94cf
Amazing, now I get swap() conflicts from the other side, F.F.S.
...
This one is because ResourceKey is derived from a HashDigest class in
Corrade::Utility, where the new swap() implementation is. C++!!!
3 years ago
Vladimír Vondruš
0d31f7461b
Math: add near/far plane distance queries to Matrix4.
...
Strange, I thought it could be extracted the same way for both
orthographic and perspective projection...
3 years ago
Vladimír Vondruš
5f287df332
GL: recognize NV_geometry_shader_passthrough.
3 years ago
Vladimír Vondruš
ec018af939
Primitives: attempt to fix a silly MSVC warning.
3 years ago
Vladimír Vondruš
670838a19a
Platform: directly use HWND in WindowlessEglApplication on Windows.
...
Sorry for not having an appropriate CI environment (such as ANGLE) to
test this class in.
3 years ago
Vladimír Vondruš
0fd8828dd2
TextureTools: curse you, Xcode "new build system".
...
Horrific trash fire that only keeps getting worse and apparently nobody
is able to do anything about it.
3 years ago
Vladimír Vondruš
6cb0b22659
package/ci: can't test on Xcode 11 anymore.
...
Also disable iOS tests until https://github.com/mosra/corrade/pull/176
is resolved.
3 years ago
Vladimír Vondruš
258f700b2d
MeshTools: remove a confusing std::move() in removeDuplicatesFuzzy().
...
Add a TODO instead, as the move *might* make sense with a MeshData&&
overload to reduce peak memory use.
3 years ago
Vladimír Vondruš
8d023a7612
MeshTools: remove redundant MeshTools:: prefixes where possible.
...
Except for test cases that ended up having the same name as the API they
test.
3 years ago
Vladimír Vondruš
6b9b0f5552
MeshTools: fix a typo in an assertion message.
3 years ago
Vladimír Vondruš
615eeacd9a
MeshTools: clean up redundant test names.
3 years ago
Vladimír Vondruš
a60668b476
GL: minor cleanup -- this variable isn't needed anywhere else.
3 years ago
Vladimír Vondruš
9ac5943957
Audio: of course nothing is ever simple. Right, Apple?
3 years ago
Vladimír Vondruš
ebc1c7936a
Audio: minor.
3 years ago
Vladimír Vondruš
a0b74169a7
Audio: some more converage improvements.
3 years ago
Vladimír Vondruš
4de1723236
doc: updated changelog.
3 years ago
Vladimír Vondruš
2b62cacb65
al-info: allow overriding the context parameters on command line.
...
Could make sense to eventually turn those into --magnum-whatever options
and have them available always. There's however the yet-unanswered
question of how to provide help for those if a GL/Vk context has its own
set of options, and how to make them not warn about mutually invalid
options.
3 years ago
Vladimír Vondruš
1fe3fa3907
al-info: print various Context properties.
3 years ago
Vladimír Vondruš
e435401f00
Audio: test Context creation failure.
3 years ago
Vladimír Vondruš
b8a6b88d3b
Audio: test also disabling an unknown extension.
3 years ago
Vladimír Vondruš
3d6f8effb4
Audio: ability to query various context properties.
...
And test all this, ugh, the test coverage is ABYSMAL here.
3 years ago
Vladimír Vondruš
70b96c6b9c
Audio: this Doxygen link seems to work now.
3 years ago