Vladimír Vondruš
8dc1f8a7da
MeshTools: make the generateFlatNormals() docs less handwavy.
...
If it takes *me* ten minutes to figure out how this needs to be used,
then it probably should be documented.
8 years ago
Vladimír Vondruš
f6ba4111e1
GL: remove obsolete Firefox workaround.
...
Reverts commit 4ce2875262 from 2015. This
is now also worked around directly in Emscripten:
6dc4ac5f9e/src/library_gl.js (L7361)
8 years ago
Vladimír Vondruš
439b40f762
Platform: this actually asserts now.
8 years ago
Vladimír Vondruš
dba35bac7a
Platform: initial HiDPI support in GlfwApplication.
...
Not basing this off GLFW 3.3 as it's far from being released yet, just a
copy of what's done for SDL2 already.
8 years ago
Vladimír Vondruš
8efc6b39e9
Deprecate the Shapes library and everything that depends on it.
...
Scheduled for removal in ~6 months if all goes well.
8 years ago
Vladimír Vondruš
c9d621bed2
Shapes: properly export all instances.
...
Not sure why this wasn't done already.
8 years ago
Vladimír Vondruš
61d0ad9c7c
external: update generated Vulkan headers for new global function in 1.1.
...
See https://github.com/mosra/flextgl/issues/18 for a detailed
discussion.
8 years ago
Vladimír Vondruš
2b0b6a9422
Platform: no, this doesn't look right.
8 years ago
Vladimír Vondruš
4a9663a2ea
Platform: update deprecation warnings/errors.
...
Consistent capitalization, add the warnings also on a file level; hide
the deprecation warnings when compiling the library itself.
8 years ago
Vladimír Vondruš
e0c0baacd2
DebugTools: Primitives are needed also for ObjectRenderer.
8 years ago
Vladimír Vondruš
b98dcf76aa
Audio: make the tests compile even if SceneGraph is not enabled.
8 years ago
Vladimír Vondruš
0adf7ea323
MeshTools: make the tests compile even if Primitives are not enabled.
...
Disabling that one benchmark which depends on Primitives.
8 years ago
Vladimír Vondruš
87a951fc5d
Math: I have no idea what happened here.
...
Even after the change I am not sure what I originally meant to do here.
Discovered by PVS-Studio, thanks to @alexesDev for gathering the report.
8 years ago
Vladimír Vondruš
86b6edb120
Platform: there's no bootstrap for GlutApplication anymore.
8 years ago
Vladimír Vondruš
6f2b115953
external: regenerated Vulkan headers with latest flextGL.
...
Should fix the compilation issue on Windows.
8 years ago
Vladimír Vondruš
de68076f65
Trade: doc++
8 years ago
Vladimír Vondruš
7356a1b788
SceneGraph: fix a copypaste error in an abstract implementation.
...
Abstract transformation implementations are not used as often so there
was only a minor chance somebody would hit this bug, yet it's a serious
bug. Discovered by PVS-Studio, many thanks to @alexesDev for collecting
the report.
8 years ago
Vladimír Vondruš
c0affdae3b
GL: properly initialize XFB binding in the state tracker.
...
Discovered by PVS-Studio, many thanks to @alexesDev for collecting the
report.
8 years ago
Vladimír Vondruš
471a6d0c28
GL: properly move BufferImage::dataSize().
...
Discovered with PVS-Studio, many thanks to @alexesDev for collecting the
report.
8 years ago
Vladimír Vondruš
e795478353
Make all vars initialized in constructors rather than at some later point.
...
Reported by PVS-Studio, many thanks to @alexesDev for collecting the
report.
8 years ago
Vladimír Vondruš
d21c05f6f3
Platform: disallow calling framebufferSize() / windowSize() w/o a window.
8 years ago
Vladimír Vondruš
088c9d6b35
Platform: better capitalization for deprecation messages.
8 years ago
Squareys
f832c8df51
Platform: gracefully fail GlfwApplication::exec() if no window was opened
...
Signed-off-by: Squareys <squareys@googlemail.com>
8 years ago
Vladimír Vondruš
bff7ae8d7e
Math: added Range::fromCenter().
8 years ago
Vladimír Vondruš
b5dc42f332
Shaders: I f'ed up the Flat shader defaults, again.
...
Leftover from 0e9cb6945e . Documented
properly, but not implemented. I *need* the shader tests ASAP.
8 years ago
Vladimír Vondruš
2f1c1aaefd
Primitives: document how the grid is oriented.
8 years ago
Vladimír Vondruš
bb8fbcef9c
Math: doc++
8 years ago
Vladimír Vondruš
c334d90870
Improve utility documentation even more.
8 years ago
Vladimír Vondruš
47ade4ef53
Platform: make it possible to get scroll position in Glfw and Sdl2App.
8 years ago
Vladimír Vondruš
8204132e6e
Platform: explicit constructors for events in GlutApplication.
8 years ago
Vladimír Vondruš
98dd44548d
Platform: events are everything but usable in a constexpr context.
8 years ago
Vladimír Vondruš
29bc3083d7
Platform: minor cleanup.
8 years ago
Vladimír Vondruš
f94c65470a
Platform: provide AndroidApplication::ViewportEvent::framebufferSize().
...
Same as windowSize(), it's there now just to make the ported examples
compile at the moment. Will need to be replaced with proper
implementation later.
8 years ago
Vladimír Vondruš
b9c96d76e8
Math: ability to use [Dual]Complex and [Dual]Quaternion in configuration.
8 years ago
Vladimír Vondruš
4de8a1d3d2
Math: minor cleanup.
8 years ago
Vladimír Vondruš
a1ef8550d3
Shaders: don't multiply Phong diffuse alpha with light intensity.
...
That messes up with alpha mask (basically, areas that receive less than
50% light get clipped away).
8 years ago
Vladimír Vondruš
f02f2f9a05
Audio: fix the magnum-al-info title.
8 years ago
Vladimír Vondruš
8f6ca904d8
doc: improved and unified docs for command-line utilities.
...
Especially mention how to build them and how to use them with CMake.
Also add a dedicated page for the Magnum::Ui Gallery.
8 years ago
Vladimír Vondruš
b47db397af
CMake: provide paths to Emscripten-specific CSS/JS files.
...
And install them unconditionally to allow them to be used with
third-party application implementations.
8 years ago
Vladimír Vondruš
e3b60abf64
Platform: don't allow emscripten to hide the oopsies.
8 years ago
Vladimír Vondruš
2e567e4f12
Platform: cthulhu was missing here.
8 years ago
Vladimír Vondruš
384d1b0c83
Platform: styling for <p> and <code> in Emscripten apps.
...
And docs linking to m.css. Just use that, if you need more.
8 years ago
Vladimír Vondruš
9095954e6d
Platform: added Sdl2Application::setContainerCssClass().
8 years ago
Vladimír Vondruš
c657da8017
Platform: use our own APIs to get framebuffer size.
8 years ago
Vladimír Vondruš
b2cb689cdc
Platform: overhaul builtin style+markup for Emscripten apps.
...
What's new:
* The style is consistent with the dark m.css theme that's used on the
website and so provides a bit better "brand identity".
* The canvas is responsive, looking properly on mobile and scaling down
with aspect ratio preservation if the screen is too narrow.
* It's now possible to override canvas size and aspect ratio or make it
"fullscreen", i.e. occupying the whole browser window.
* If the app crashes, a helpful message is printed instead of
everything just being stuck.
8 years ago
Vladimír Vondruš
934d9e6bf9
Platform: resize events in Sdl2App on Emscripten, autodetecting size.
...
I thought this would "just work", BUT NO. The only way is to poll for
canvas size once a frame, apparently.
8 years ago
Vladimír Vondruš
80ba53dc3c
Platform: hide meaningless Sdl2Application window flags on Emscripten.
8 years ago
Vladimír Vondruš
56a933b17c
Platform: deprecate Sdl2Application AllowHighDpi window flag.
...
It's now passed implicitly on platforms that need it.
8 years ago
Vladimír Vondruš
ed0a719da2
Platform: pass a class to viewportEvent().
...
With HiDPI support it's no longer just about window size changing -- if
the framebuffer size is different than window size, on resize both are
changed to new (different) values. Other than that, for example, when
moving a window from one display to another with a different DPI,
all three of window size, framebuffer size and DPI scaling can change as
well. This should be all reflected in the event.
This change is done in all Application classes, but the full
implementation is only in the SDL2 implementation at the moment, as the
others don't have full HiDPI support implemented yet. The old
viewportEvent(const Vector2i&) is deprecated and for backwards
compatibility called with either framebufferSize() or windowSize()
(depending on level of HiDPI support) from the new event. Overriding the
old one will still work as expected (in case you build with
MAGNUM_BUILD_DEPRECATED enabled and use the `override` keyword -- which
you should); overriding the new one will cause the compat implementation
to not be called anymore.
In order to make it possible to preserve backwards compatibility, the
viewportEvent() is no longer pure virtual in Screen. That's also
consistent with all Application implementations.
8 years ago
Vladimír Vondruš
25d0bb8768
Platform: {Android,Glfw}Application: consistent windowSize() with SDL.
...
Not providing framebufferSize() or dpiScaling() there yet, as that's a
bit involved in both cases. Support will be added, eventually.
8 years ago