Vladimír Vondruš
7941a769cd
Math: added IsUnitless type trait.
7 years ago
Vladimír Vondruš
ab0d7c5485
Math: be consistent with not using long double on Emscripten.
7 years ago
Vladimír Vondruš
19844352ff
Math: added UnderlyingTypeOf.
7 years ago
Vladimír Vondruš
aa2adb7222
Math: add IsScalar, IsVector, IsIntegral and IsFloatingPoint type traits.
...
The standard ones are not good enough, so let's roll out my own.
7 years ago
Vladimír Vondruš
6521e1b9be
Platform: properly zero-initialize the exit code.
...
Accidentally overlooked in f4b6130ab0 .
7 years ago
Vladimír Vondruš
dc1cf5e9d4
Platform: missing enum operators for GlfwApp::MouseMoveEvent::Buttons.
7 years ago
Vladimír Vondruš
f419b25763
Doc++
7 years ago
Vladimír Vondruš
e4db99b418
Updated changelog and credits.
7 years ago
Vladimír Vondruš
66db41f40c
doc: link to OpenAL APIs.
7 years ago
Vladimír Vondruš
f8fc9a7339
doc: oops, forgot these files.
7 years ago
Vladimír Vondruš
bede124c95
Link to the Python API from C++ docs.
7 years ago
Vladimír Vondruš
ba14afb6c8
Platform: doc++
7 years ago
Vladimír Vondruš
11b9f2382c
GL: doc++
7 years ago
Vladimír Vondruš
4b4b8efc1b
Math: doc++
...
Fixing Engrish while doing the Python bindings.
7 years ago
Vladimír Vondruš
91725dd86e
Platform: enable PIC for all (static) Application libraries.
...
Python bindings (which are wrapping these in shared libs) need that.
7 years ago
Vladimír Vondruš
9ec10b89d0
plugins: fix linking of static Any* plugins on otherwise dynamic builds.
7 years ago
Vladimír Vondruš
f383959fb0
Platform: fix SDL2/GLFW viewportEvent() on Retina-aware {i,mac}OS apps.
7 years ago
Vladimír Vondruš
70993983b6
doc: this is wrong.
7 years ago
Vladimír Vondruš
7e06581758
Platform: show the value of KeyEvent::key() in the tests.
7 years ago
Vladimír Vondruš
442d5576d0
Math: change the way BoolVector is printed to Debug.
...
Found while working on the Python bindings --- BoolVector4(0b1010) got
printed as BoolVector(0101), which is totally confusing. Now it prints
it in a way that looks exactly the same as when constructing the vector
with binary literals.
7 years ago
Vladimír Vondruš
e5175583a7
Added Image::pixels(), ImageView::pixels() and Trade::ImageData::pixels().
...
Hard to explain in a tweet, err, commit message. Blog post incoming.
7 years ago
Vladimír Vondruš
4b6fabb004
Math: ability to Debug colors as actual colored squares.
7 years ago
Vladimír Vondruš
988a33c000
Added convenience BoolVector2, BoolVector3 and BoolVector4 typedefs.
7 years ago
Vladimír Vondruš
fb930187c1
Animation: adapt to Corrade changes.
7 years ago
Vladimír Vondruš
b937f3901e
Tell the editors to strip trailing whitespace and add a trailing newline.
7 years ago
Vladimír Vondruš
da7ac5a4f0
doc: updated changelog.
7 years ago
Guillaume Jacquemin
b4dac78ef3
Platform: improve {Glfw,Sdl2}Application.
...
Two new methods, setMinWindowSize() and setMaxWindowSize(), were added.
They use the underlying library's API to achieve their purpose.
7 years ago
Vladimír Vondruš
8672dc7eab
Platform: cleanup trailing whitespace.
7 years ago
Vladimír Vondruš
8b37d4fd78
modules: different search order for plugin libs in FindMagnum.
...
This makes Vcpkg-built static plugins be found correctly. Previously
both the debug and release variant pointed to the same lib.
7 years ago
Vladimír Vondruš
eccebcbdd7
Accept nullptr in AbstractResourceLoader::set().
...
Also implement setNotFound() using set() and make the code more
flexible.
7 years ago
Vladimír Vondruš
a1d3f734d6
Shaders: generate textured Phong VS only if textures are actually used.
...
Previously this got enabled also when AlphaMask was enabled, but no
texture. That's a strange case but nevertheless, let's be precise.
7 years ago
Vladimír Vondruš
b1ecff0052
Shaders: have a definition for the generic color attribute.
7 years ago
Vladimír Vondruš
de1e1fa4d5
MeshTools: make interleave() work with Corrade containers too.
7 years ago
Vladimír Vondruš
e45e13e552
MeshTools: remove obsolete TODO.
7 years ago
Vladimír Vondruš
e1061f1766
MeshTools: fix a bad corner case in compile().
...
Having texture coordinates *and* colors is very unusual, nevertheless it
was a bug.
7 years ago
Vladimír Vondruš
bf4bf9eac5
MeshTools: 100% code coverage for compile().
...
There's some bug in there, so let's test it all.
7 years ago
Vladimír Vondruš
3fb90cdf5c
Math: remove obsolete Doxygen workarounds.
7 years ago
Vladimír Vondruš
36ba5f4333
Math: ensure ZeroInit and IdentityInit constructors are explicit.
...
Like NoInit ones. Not sure what I was doing there.
7 years ago
Vladimír Vondruš
1f305e7cbe
CMake: give priority to our own module path.
7 years ago
Vladimír Vondruš
687496fccb
CMake: make OpenGL_GL_PREFERENCE settable from outside.
7 years ago
Vladimír Vondruš
948ea593a5
doc: adapt more to m.css changes.
...
I'm blind.
7 years ago
Vladimír Vondruš
522db683a9
external: provide the GL_VERSION_* defines in our GL headers.
...
This fixes a conflicting definition of GLsizeiptr and GLintptr when
Magnum is combined with qopengl.h from Qt on Windows. Khronos has it as
`signed long int`, whereas qopengl.h as ptrdiff_t, which is just `int`.
7 years ago
Vladimír Vondruš
6e482549d2
external: don't even attempt to load ES3.1 and ES3.2 functions on iOS.
...
Probably a missed leftover from the times where the world was still
optimistic about OpenGL on Apple platforms.
7 years ago
Vladimír Vondruš
d557563a83
doc: updated changelog and credits.
7 years ago
Guillaume Jacquemin
f4b6130ab0
Platform: improve {Glfw,Sdl2}Application::exit().
...
Now, it's possible to specify a custom exit code.
7 years ago
Vladimír Vondruš
e8d6f337f4
doc: fix invalid references in changelog.
7 years ago
Vladimír Vondruš
99ab736f93
doc: whoops, wrong link.
7 years ago
Vladimír Vondruš
a3ea5154d6
GL: explicitly instantiate template function.
...
It suddenly started causing linker errors on macOS Travis builds.
7 years ago
Vladimír Vondruš
b77651cf93
GL: remove Buffer::set[Sub]Data() taking std::array / std::vector.
...
Instead make use of the ArrayView STL compatibility. To avoid breaking
almost all existing code the Corrade/Containers/ArrayViewStl.h header is
included implicitly when MAGNUM_BUILD_DEPRECATED is defined, but this
will get removed in some future release to speed up the compilation.
7 years ago
Vladimír Vondruš
b05c887375
Audio, GL: make the extension lists constexpr.
...
The Audio::Extension::extensions() and GL::Extension::extensions()
functions now return an ArrayView instead of a reference to std::vector.
Having a function-local static std::vector is the worst thing ever. Ugh.
7 years ago