Squareys
f69f3393ec
Math: Add DualQuaternion/DualComplex::from(rotation, translation)
...
Signed-off-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
e6322dcfd1
Math: use angle literals in all test code.
...
It was originally done using the Deg() / Rad() constructors in order to
be compatible with GCC 4.6, but fortunately those days are long gone.
Co-authored-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
d51094e972
GL: wait, PrimitiveQuery isn't on ES2 at all, so why the ifdefs.
6 years ago
Vladimír Vondruš
1a626a1db5
GL: Context move constructor should be marked noexcept.
6 years ago
Vladimír Vondruš
e8f13af4be
GL: test noexcept-movability of all GL classes.
...
Not sure why this wasn't done for ages already, all other
(non-GL) classes have it.
6 years ago
Vladimír Vondruš
bd5364fe36
Expand Magnum tag tests with what Corrade tags have also tested.
6 years ago
Vladimír Vondruš
a8b99fb020
Platform: use a branded color.
6 years ago
Vladimír Vondruš
1fe8df400b
Platform: add a TODO about target_link_options().
6 years ago
Vladimír Vondruš
f4201541f1
doc: updated credits and changelog.
6 years ago
Pablo Escobar
f22421247d
Platform: use new CSS classes in gl-info
6 years ago
Pablo Escobar
c3c0010304
Platform: avoid potential race conditions on load.
6 years ago
Pablo Escobar
110e45d0ea
Platform: add test for multiple applications on one page.
6 years ago
Pablo Escobar
673a17fa11
Platform: allow to reuse existing Emscripten Module properties.
...
By wrapping the module creation in a function that includes properties
from the original module as well as allowing to override the default
properties from the outside. This also means it's possible to create
differently named modules for multiple applications on the page.
6 years ago
Pablo Escobar
1fd365773a
Platform: update {Emscripten,Sdl2}App cursor using Module['canvas'].
6 years ago
Pablo Escobar
01b4d8d171
Platform: get EmscriptenApplication canvas target from Module['canvas'].
...
And properly account for -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR.
Module['canvas'] can be read even from code compiled with -s MODULARIZE
so it's a preferrable option to hardcoding it in Configuration. The
target strings in Emscripten depend on whether we're compiled with
DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR (see
https://github.com/emscripten-core/emscripten/pull/7977 ). This is now
detected and handled at runtime to prepend element IDs with and use
the correct window and document magic targets.
6 years ago
Vladimír Vondruš
66c9746986
Platform: switch Emscripten app tests to use CSS classes instead of IDs.
...
Can confirm this worked before and works now as well.
6 years ago
Vladimír Vondruš
832f0ae3fc
Platform: don't hardcode ID in {Emscripten,Sdl}App::setContainerCssClass().
...
Instead look for a closest parent element of our <canvas> having the
.mn-container class. This should thus work for more than one canvas on a
page.
6 years ago
Vladimír Vondruš
2d0c97d4c0
Platform: use CSS classes instead of IDs for Emscripten markup.
...
IDs restrict the usability to a single canvas on the page. For backwards
compatibility purposes those are still kept, but the use is discouraged
now.
6 years ago
Vladimír Vondruš
86a26eb07b
Platform: don't hardcode status and log element IDs for Emscripten.
...
I still need to figure out how to not hardcode a global Module, heh.
6 years ago
Vladimír Vondruš
67a711a101
Platform: I'm sorry for breaking the build.
6 years ago
Vladimír Vondruš
7ce234f60b
Revert "EmscriptenApplication: get correct keyboardListeningElement CSS selector"
...
Not yet sure about all interactions with older Emscripten versions and
DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR set to 0, reverting until
it's clear.
This reverts commit c760acb548 .
6 years ago
Vladimír Vondruš
fc9a2f45d6
Platform: clear the framebuffer in Sdl2Application test.
...
It's unnecessarily hard to verify behavioral consistency across
different app implementations without.
6 years ago
Vladimír Vondruš
4c2aae65b9
Platform: https!
6 years ago
Vladimír Vondruš
e03813643a
Platform: this documentation is wrong.
6 years ago
Vladimír Vondruš
fa733a55ca
doc: updated credits.
6 years ago
Pablo Escobar
c760acb548
EmscriptenApplication: get correct keyboardListeningElement CSS selector
6 years ago
Vladimír Vondruš
321c2d22b9
Platform: improve console output of EmscriptenApplicationTest.
6 years ago
Vladimír Vondruš
08ecbbc380
Platform: fix EmscriptenApplication key events.
...
Got broken in 0f026cd314 . Note to self:
don't delegate testing to third parties.
6 years ago
Vladimír Vondruš
6ec446ac2e
ShaderTools: document relation between the CLI and C++ APIs.
6 years ago
Vladimír Vondruš
709931896d
ShaderTools: doc that optimization / debug info doesn't affect validation.
6 years ago
Vladimír Vondruš
c9d28af5d4
shaderconverter: hmm, this is wrong.
6 years ago
Vladimír Vondruš
d15d024da1
ShaderTools: check for PreprocessOnly also in validate*().
6 years ago
Vladimír Vondruš
0a32b74356
ShaderTools: forgot to test the PreprocessOnly check in link*().
6 years ago
Vladimír Vondruš
5c223d2045
doc: reference CLI utils from plugin interface classes.
6 years ago
Vladimír Vondruš
f80b238e27
ShaderTools: intro docs for AbstractConverter.
...
Now that we have AnyShaderConverter we can finally do that.
6 years ago
Vladimír Vondruš
dcbd860f9b
shaderconverter: new tool.
6 years ago
Vladimír Vondruš
7c0266f3eb
ShaderTools: add a TODO.
6 years ago
Vladimír Vondruš
b9ef6b4a02
ShaderTools: ability to control optimizations and debug level.
...
So the -O and -g options in magnum-sceneconverter can be implemented in
a generic way.
6 years ago
Vladimír Vondruš
ff7b08a59b
ShaderTools: ability to control the preprocessor.
...
For -E, -D and -U magnum-shaderconverter options.
6 years ago
Vladimír Vondruš
7ee589552f
ShaderTools: expand verbosity levels, add warnings as errors.
6 years ago
Vladimír Vondruš
709ed229f5
ShaderTools: ability to specify input/output shader format and version.
...
For things like converting from GLSL 4.50 to 1.00 ES.
6 years ago
Vladimír Vondruš
332030aaa2
ShaderTools: add a linking API to AbstractConverter.
...
Eh. Am I overdoing it with the tests?
6 years ago
Vladimír Vondruš
ad12575a08
ShaderTools: C++, you're stupid. Fuck you.
...
Like, it's INEVITABLE to have a 100-line std::lerp() implementation for
questionable reasons but such dead-simple thing as std::pair doing moves
instead of copies where expected that should have been done CORRECTLY
back in 2011 still isn't working reliably across implementations?!
I guess I'm doing my Containers::Pair soon as well, then.
6 years ago
Vladimír Vondruš
13dfb6472f
ShaderTools: bootstrap new library.
...
Currently there's just a plugin interface for shader converters. More
stuff (probably something like SPIR-V reflection) will come later.
6 years ago
Vladimír Vondruš
0f026cd314
Platform: port EmscriptenApplication away from deprecated string APIs.
...
And avoid a needless std::string allocation as well, heh.
6 years ago
Vladimír Vondruš
9fa90997ac
Trade: fix cone angle defaults in LightData.
...
Those were initially implemented and documented when I thought glTF
uses a full cone angle, and I forgot to update them once I discovered
glTF has a half-angle. This is thus now consistent with glTF defaults
again.
6 years ago
Vladimír Vondruš
01cbfc6c3c
MeshTools: adapt compile() test to changes in Phong light falloff.
...
Heh, I forgot to run the full test suite after the changes in
1eb1eec271 and then the CI accidentally
had all rendering tests skipped due to missing plugins (which got fixed
in the previous commit, d1ee0b7f7e ), so
that didn't catch it either. Sigh.
6 years ago
Vladimír Vondruš
08bd6e9ae9
Test: fix wrong plugin name in a message.
6 years ago
Vladimír Vondruš
e7b9ca735e
Shaders: make default indentity matrices more explicit in the code.
6 years ago
Vladimír Vondruš
83d6509595
Math: adapt to changes to Tweakable internals.
6 years ago