Vladimír Vondruš
eeac7e2868
Math: minmax() for a pointer range.
...
Thanks @Squareys for unblocking my brain!
9 years ago
Vladimír Vondruš
9204156485
Math: constexpr issues with MSVC 2015.
9 years ago
Vladimír Vondruš
590717acfe
Trade: fix copypaste error in the test.
...
And then an assertion. Huh. Did I ever look at the code coverage?!
9 years ago
Vladimír Vondruš
353d7ff59d
Math: implemented minmax() for arbitrary vectors.
9 years ago
Vladimír Vondruš
4cf9459110
Math: return default-constructed value for min()/max() on empty range.
9 years ago
Vladimír Vondruš
bfa259fb18
Math: min() and max() for pointer ranges.
...
The test is for the initializer list version, so it covers these as
well.
9 years ago
Vladimír Vondruš
9e796b76c8
Math: added clamp(Vector, Vector, Vector), {min,max}(Vector, T)
...
In order to provide consistent API with GLSL. Pretty annoying omission.
9 years ago
Vladimír Vondruš
59f69d2a4f
Math: assert that the (un)packed vector type has the same size.
9 years ago
Vladimír Vondruš
8637cbdc31
Math: Color4::{xyz,rgb}() should return Color3, not Vector3.
9 years ago
Vladimír Vondruš
ce5699ce60
CMake: define UNICODE/_UNICODE on Windows to prevent ANSI accidents.
9 years ago
Vladimír Vondruš
34d4d707f9
package/archlinux: some numbers wanted to be updated.
9 years ago
Vladimír Vondruš
b14927aa61
Platform: added {Sdl2,Glfw}Application::window().
9 years ago
Vladimír Vondruš
4955e1e320
Platform: text input in GlfwApplication.
...
Mirrors a subset of the text input API from Sdl2Application, requires
latest Corrade for the Unicode::utf8() function.
9 years ago
Vladimír Vondruš
11d664efef
Platform: provide position in GlfwApplication::MouseEvent.
...
Kinda useless without it, I would say.
9 years ago
Vladimír Vondruš
9aa4e69db0
Platform: added GlfwApplication::windowSize().
9 years ago
Vladimír Vondruš
455dc26840
Platform: properly set minimized and cursor window options for GLFW.
...
Didn't work and caused the following error messages to be printed to the
output:
Invalid window hint 131074
Invalid window hint 208897
9 years ago
Vladimír Vondruš
57b36240c2
Platform: doc++
9 years ago
Vladimír Vondruš
3a16ae6f46
Platform: use Flag::TextInputActive instead of a boolean in Sdl2Application.
9 years ago
Vladimír Vondruš
f64ebc6219
Platform: use Flag::Redraw instead of a boolean in GlfwApplication.
...
Also properly reset it before drawEvent() so the users can control the
amount of redrawing themselves.
9 years ago
Vladimír Vondruš
4509dbb1b1
Don't use deprecated Corrade functionality.
9 years ago
Vladimír Vondruš
a7c7323673
Platform: make WindowFlag::Resizable consistent between GLFW and SDL2 app.
...
It was Resizeable on GLFW and Resizable on SDL2. As both APIs use
"resizable" as the flag name, I'm keeping it. The old enum value is now
an alias to the new one, is marked as deprecated and will be removed in
a future release.
9 years ago
Vladimír Vondruš
6ed4f6fe7f
Sloppy Doxygen docs are sloppy.
...
Note to myself: don't write docs under pressure.
9 years ago
Vladimír Vondruš
d34899eb5c
doc: added some useful notes to Best Practices.
9 years ago
Vladimír Vondruš
30018bdfbb
doc: updated formatting of Best Practices.
9 years ago
Vladimír Vondruš
f0cf36dea5
Added NoCreate {Compressed,}BufferImage constructors.
...
To have common API across the board.
9 years ago
Vladimír Vondruš
e0672f4867
Math: link to the Tau manifesto.
9 years ago
Vladimír Vondruš
44b2ae72bb
Ability to create {Compressed,}BufferImage from an existing Buffer.
...
One use case might be data reinterpreting in combination with
{Compressed,}BufferImage::release().
9 years ago
Vladimír Vondruš
876573fc6c
Added {Compressed,}BufferImage::release().
...
To mirror the API in other Image classes.
9 years ago
Vladimír Vondruš
cd70bc8f1e
DebugTools: fix assertion in ObjectRenderer.
...
Apparently this class was not used since 2013.
9 years ago
Vladimír Vondruš
bc1b8b0095
SceneGraph: fix deprecation warning message.
9 years ago
Vladimír Vondruš
e797fac8c7
package/ci: make AppVeyor MinGW green again.
9 years ago
Vladimír Vondruš
58831670f4
package/ci: fix coveralls upload.
9 years ago
Vladimír Vondruš
3300f06017
package: enabled OpenGLTester in all packages and CIs.
9 years ago
Vladimír Vondruš
9ab2a1553c
Fix compilation on GCC 6.3.
...
This is just sad.
9 years ago
Vladimír Vondruš
a0eeecba4a
Added GPU time benchmarking to OpenGLTester.
9 years ago
Vladimír Vondruš
ee3afc1bbc
Code simplification in plugin tests.
...
Somehow slipped through ages ago.
9 years ago
Vladimír Vondruš
fb454d8a3f
Made Test/AbstractOpenGLTester.h a public and documented API.
...
There will be numerous additions to this one so it made sense to make it
a static library instead of a header-only library. That also allows
CMake users to just link to Magnum::OpenGLTester instead of going
through the pain of a huge branching in order to find a correct
windowless application just to run their tests. It could have been done
even without the static library using a INTERFACE target, but that
wouldn't work on CMake < 3.0 (which, unfortunately, quite a few people
are still stuck with).
Unfortunately it's already heavily used elsewhere so I had to go through
the pain of deprecating the old implementation. The old implementation
was header-only so it can't be just typedef'd to the new one as there
would be linker failures. So the old header is just kept as it was, with
only the macros reduced.
9 years ago
Vladimír Vondruš
772ae84062
Test: adapt AbstractOpenGLTester to changes in Corrade::TestSuite.
9 years ago
Vladimír Vondruš
7ec6c3b477
doc: reordered sections of building docs for consistency with cmake docs.
9 years ago
Vladimír Vondruš
f31537d184
Clarify docs of Renderer::Feature::FramebufferSRGB.
9 years ago
Vladimír Vondruš
fa0395bb9e
Platform: improve docs of MAGNUM_*APPLICATION_MAIN() for consistency.
9 years ago
Vladimír Vondruš
100405ec89
DebugTools: GCC 4.7 can't handle raw strings inside macros.
9 years ago
Vladimír Vondruš
c45472a0f0
DebugTools: initial implementation of CompareImage class.
...
Currently just does per-pixel comparison and calculates absolute delta,
failing the comparison if max/mean delta threshold is above specified
values. Useful enough for the case I have right now, might fail in other
case -- but still better than whatever else I was using before :)
9 years ago
Vladimír Vondruš
bb69a88922
Math: fix double->float conversion warnings on MSVC.
9 years ago
Vladimír Vondruš
c0ce10882f
Fix misleading documentation of PixelStorage::dataProperties().
9 years ago
Vladimír Vondruš
f966644d83
DebugTools: include the tests only if the features are actually built.
9 years ago
Vladimír Vondruš
256930b90e
CMake: provide the plugin-related variables insde the project as well.
...
Until now they were provided only through FindMagnum.cmake.
9 years ago
Vladimír Vondruš
2ed3fba575
Adapted plugin constructor signatures to Corrade::PluginManager updates.
9 years ago
Vladimír Vondruš
a960a3d8cd
Math: initialize BoolVector to silence compiler warnings.
9 years ago
Vladimír Vondruš
db3ef59ddc
MeshTools: don't use deprecated functionality.
9 years ago