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š
da7ac5a4f0
doc: updated changelog.
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š
de1e1fa4d5
MeshTools: make interleave() work with Corrade containers too.
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š
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š
687496fccb
CMake: make OpenGL_GL_PREFERENCE settable from outside.
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š
d557563a83
doc: updated changelog and credits.
7 years ago
Vladimír Vondruš
e8d6f337f4
doc: fix invalid references in changelog.
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
Vladimír Vondruš
fb27ecd87d
doc: updated changelog and credits.
7 years ago
Vladimír Vondruš
93686746ab
Pernament is not a word.
...
/me hides in embarrassment
7 years ago
Vladimír Vondruš
5cf4f6bb19
Math: be nicer to people and preserve compatibility.
...
This broke backwards compatibility pretty heavily for little reason.
Putting back a compat include.
7 years ago
Vladimír Vondruš
53c1549e69
Math: deprecate Frustum::planes() in favor of begin()/end().
...
This allows us to get rid of the StaticArrayView, which is the last
roadblock on the way to a single-header math. The planes() are now
deprecated, along with the include, and will get removed in a future
release.
7 years ago
Vladimír Vondruš
c12680ec38
Math: move batch functionality to FunctionsBatch.h.
...
Avoids including a (relatively) large ArrayView in Functions.h. Yes,
we are now at a point where 500 lines matter.
7 years ago
Vladimír Vondruš
547a3f3cea
Math: use a dedicated type for HSV colors instead of a tuple.
...
Pros:
* faster compile times (#include <tuple> is 13k lines, ugh)
* ability to have NoInit and ZeroInit constructors
* ability to do fuzzy compare
* named members, so we don't have to use mutable std::tie()
Cons:
* ... none?
The old Color[34]::Hsv is still a tuple and the new ColorHsv is
convertible to/from it (and even std::tie() works). These are all
deprecated (along with the <tuple> include).
7 years ago
Vladimír Vondruš
64bc7f9c8e
Math: moved configuration value parsers to a dedicated header.
...
There's a lot of string operations and that's nothing good to have
included everywhere. Should speed up the compilation quite a bit.
7 years ago
Vladimír Vondruš
6cf2282c43
doc: updated changelog.
7 years ago
Vladimír Vondruš
8ba3489265
Audio: removed deprecated Context::hrtfSpecifier().
...
Deprecated since 2018.02, use hrtfSpecifierString() instead.
7 years ago
Vladimír Vondruš
377719147c
Audio, GL: remove deprecated Context conversion to pointer.
...
Deprecated since 2017.
7 years ago
Vladimír Vondruš
90577d5bfc
Platform: removed deprecated Application constructors taking nullptr.
...
Deprecated since 2017, use the ones taking NoCreate instead.
7 years ago
Vladimír Vondruš
86a21282d6
GL: removed deprecated Mesh::IndexType and indexSize().
...
Deprecated as part of the 2018.04 GL split, use GL::meshIndexType() and
GL::meshIndexSize() instead.
7 years ago
Vladimír Vondruš
4726094906
GL: removed deprecated CubeMapTexture::Coordinate.
...
Deprecated since 2016.
7 years ago
Vladimír Vondruš
dad4fc7396
GL: removed deprecated Context::DetectedDriver aliases.
...
Deprecated since 2017.
7 years ago
Vladimír Vondruš
ecc0ab6a59
GL: removed long-deprecated templated Buffer data access APIs.
7 years ago
Vladimír Vondruš
36a3f32d64
GL: make *Texture::unbindImage() work on ARM Mali.
...
Easy to fix, but the format should not matter in this case at all.
7 years ago
Vladimír Vondruš
b7d9171b54
GL: disable EXT_disjoint_timer_query on ARM Mali in a shell.
7 years ago
Vladimír Vondruš
6c5d037005
GL: detecting ARM Mali drivers on Android.
7 years ago
Vladimír Vondruš
e699d2eea4
GL: don't assume debug output callbacks are called from the same thread.
...
Interesting that I didn't run into this until testing on Mesa AMD
drivers. So far it worked for NV, Mesa Intel, Intel Windows, Android and
many more. Heh. Also improved the test to actually verify the user
pointer gets passed through correctly and updated the docs to reflect
this behavior.
7 years ago
Vladimír Vondruš
094ea1bbd0
GL: new "intel-windows-broken-dsa-integer-vertex-attributes" workaround.
7 years ago
Vladimír Vondruš
3c1a12c677
GL: new "intel-windows-broken-dsa-indexed-queries" workaround.
7 years ago
Vladimír Vondruš
174e63e8d0
GL: new "intel-windows-broken-dsa-framebuffer-clear" workaround.
...
I'm too lazy to write the commit messages now.
7 years ago
Vladimír Vondruš
89e1c49d2c
GL: "intel-windows-broken-dsa-layered-cubemap-array-framebuffer-attachment".
...
New workaround. The names are getting too effing long.
7 years ago
Vladimír Vondruš
f9c6deae63
GL: new "intel-windows-half-baked-dsa-texture-bind" workaround.
...
This is broken as well, in a novel and interesting way. Haha.
7 years ago
Vladimír Vondruš
580a3c5553
GL: new "intel-windows-broken-dsa-for-cubemaps" workaround.
...
Fixes everything related to cube maps when ARB_DSA is used.
7 years ago
Vladimír Vondruš
ece6eef5a4
GL: new "intel-windows-buggy-dsa-bufferdata-for-index-buffers" workaround.
...
This is getting ridiculous, heh.
7 years ago
Vladimír Vondruš
53b583fe7a
modules: make FindSDL2.cmake work with MinGW version 2.0.5 and higher.
...
Why nobody told me *all these years*?
7 years ago
Vladimír Vondruš
9400008500
doc: updated changelog.
7 years ago
Daniel
035f644769
Platform: removed GlutApplication.
7 years ago
Vladimír Vondruš
aca02f52f5
Shapes: this library is no more either.
7 years ago
Vladimír Vondruš
930a323c05
GL: removed deprecated aliases to GL functionality in the root namespace.
...
Deprecated for 2018.04, it's been almost a year since. Whoever is using
Magnum regularly updated already, and who not can always upgrade
gradually (2018.02, 2018.04, 2018.10, 2019.01 etc.).
7 years ago
Vladimír Vondruš
572b64bb5c
GL: drop support for EXT_direct_state_access.
7 years ago
Vladimír Vondruš
21b2cac953
GL: make use of ARB_DSA in Mesh internals.
...
Last holdout of EXT_DSA is gone. I'm not even preserving the EXT_DSA
docs anymore. Now let's take the trash out.
7 years ago
Vladimír Vondruš
2253987531
Platform: HiDPI support for SDL2 and GLFW on Windows.
...
Co-authored-by: Guillaume Jacquemin <williamjcm@users.noreply.github.com>
7 years ago