Vladimír Vondruš
50902e72d7
Platform: check for non-null GL_VENDOR before comparing it.
...
Otherwise, when context creation fails *really bad*, this crashes
somewhere deep in __strncmp_sse42 or so.
7 years ago
Vladimír Vondruš
035642748f
TgaImporter: properly handle files with too short data.
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š
4e20d22c4b
Platform: separate the implicit engine startup log from the rest.
7 years ago
Vladimír Vondruš
291fa9a60a
Platform: display also standard library defines in magnum-gl-info.
7 years ago
Vladimír Vondruš
1c8cbaa68a
GL: trim vendor string in the engine startup log.
...
Mesa has a space at the end and my OCD goes crazy about that.
7 years ago
Vladimír Vondruš
bb921d0f86
GL: print a message about GPU validation in verbose log output.
7 years ago
Vladimír Vondruš
3508439445
GL: clarify Context::DetectedDriver value docs.
7 years ago
Vladimír Vondruš
14911500bd
GL: warn if using --magnum-gpu-validation w/o debug context on AMD.
...
That's so far the only driver where it matters I think, so not printing
the warning elsewhere.
7 years ago
Vladimír Vondruš
e746b38d3c
GL: what?! why? no.
7 years ago
Vladimír Vondruš
7feb6df0ab
GL: harden image upload tests in GLCubeMapGLTest.
...
In particular, the usual setStorage() + six times setSubImage() wasn't
really tested anywhere except in fullImageQuery(), which usually fails
for other reasons anyway. Also testing more than just +X, since SOME
DRIVERS apparently fail with other coordinates.
7 years ago
Vladimír Vondruš
8d98f1161e
Shaders: clamp shininess factor in Phong to minimize artifacts.
...
I feel this makes the shader code unnecessarily slow to handle bad
parameters. But eh, until I actually benchmark, I shouldn't be making
assumptions.
7 years ago
Vladimír Vondruš
a1cc0cb62d
Math: off-center Matrix4::perspectiveProjection().
7 years ago
Vladimír Vondruš
637e8ecd44
Math: de-duplicate code in Matrix4::perspectiveProjection().
7 years ago
Vladimír Vondruš
ad291c2afe
Math: mention planeEquation() in Frustum docs and vice versa.
7 years ago
Vladimír Vondruš
8791488f4a
MeshTools: show how generate*NormalsInto() can be used with std::vector.
7 years ago
Vladimír Vondruš
cfbfdb72c0
doc: compile MeshTools snippets also when GL is disabled.
7 years ago
Vladimír Vondruš
7604309014
DebugTools: make it clearer that ForceRenderer takes a reference.
7 years ago
Vladimír Vondruš
10d5894e50
Trade: doc++
7 years ago
Vladimír Vondruš
6d1569d82b
Platform: build Application tests as WIN32 apps on Windows.
...
So, without the console window in the background.
7 years ago
Vladimír Vondruš
d542e2b7e2
Animation: MSVC 2019 still doesn't like this.
...
Well, the /permissive- version does, but ...
7 years ago
Vladimír Vondruš
9e2a1117de
MeshTools: yay? a new SILLY workaround for MSVC 2019?
7 years ago
Vladimír Vondruš
ddb16f6df8
DebugTools: give up on optimism.
7 years ago
Vladimír Vondruš
bc9068efda
GL: harden multi-Context test.
7 years ago
Vladimír Vondruš
51cd4b3dd0
GL: fixed a 64-to-32-bit conversion warning on MSVC.
7 years ago
Vladimír Vondruš
11a94c16a3
GL: added Context::makeCurrent().
7 years ago
Vladimír Vondruš
b83c4366e7
Math: fix a build issue with CUDA on Windows.
7 years ago
Vladimír Vondruš
a3c7968e64
Adapt to BUILD_MULTITHREADED being part of Corrade now.
...
If building with deprecated features enabled, the buildsystem checks if
the option is still set and is inconsistent with what Corrade reports
and reports a deprecation warning. For backwards compatibility the
MAGNUM_BUILD_MULTITHREADED CMake variable and preprocessor macro are
still provided as well.
7 years ago
Vladimír Vondruš
8e714280fa
GL: test for multithreaded behavior of GL::Context.
7 years ago
Cameron Egbert
d19f479721
Platform: fix DpiScaling to handle calling conventions properly on Windows.
7 years ago
Vladimír Vondruš
f89e935f7d
Ensure Resource operator== doesn't work with different types.
...
Otherwise it could in some circumstances compare the actual
resource values giving false positives.
7 years ago
Daniel Guzman
909b05b8fa
Added equal and not equal operators in Magnum::Resource
7 years ago
Vladimír Vondruš
4c6ebeeef4
Platform: doc++
7 years ago
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š
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