Vladimír Vondruš
3a243a04b2
CMake: put all binaries into a dedicated location in the build dir.
...
This makes it possible to:
- finally use Magnum as a CMake subproject on Windows and have your
executables not fail to run with a "DLL missing" error (and the
setting is put to cache so superprojects just implicitly make use of
that)
- run tests on Windows without having to install first
- use dynamic plugins from a CMake subproject on any platform without
having to install first or load them by filename --- and the plugin
directory is now easily discovered as relative to
libraryLocation() of the library implementing given plugin interface
7 years ago
Vladimír Vondruš
71a9f1bbbf
Reserve zero [Compressed]PixelFormat for an invalid value.
...
Catches accidents better -- just look at the diff. Might catch accidents
in your code now as well, so beware!
7 years ago
Vladimír Vondruš
069c81b9cb
Deprecate passing nullptr to images.
...
Causes too much pain. Ugh.
7 years ago
Vladimír Vondruš
0d71c1d1cc
Search plugins relative to library DLLs on Windows.
...
Makes Windows users' lives slightly easier.
7 years ago
Vladimír Vondruš
93789721b2
De-inline Image headers, remove dependency on ImageView.
...
This means users have to add some more #includes on their side. Sorry
but it's for your own good :P
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š
3626562e1d
Adapted to Corrade changes.
...
Mostly missing includes now.
7 years ago
Vladimír Vondruš
93686746ab
Pernament is not a word.
...
/me hides in embarrassment
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š
2b30246ff2
Fixed various MSVC warnings about clashing variable names.
7 years ago
Vladimír Vondruš
25aa1b8c22
Text: expect opened font in all AbstractFont accessors.
...
Consistency is a king. This might be a perf penalty, but it prevents
accidents (and the user code can always cache the value), so it's
warranted.
7 years ago
Vladimír Vondruš
db1d18729c
Text: test basic AbstractFont construction.
7 years ago
Vladimír Vondruš
7fefac955a
Text: debug output for AbstractFont::Feature[s].
7 years ago
Vladimír Vondruš
344e00ce11
Text: implement file callbacks for AbstractFont.
...
Basically mirroring the API of Trade::AbstractImporter, as that proved
to be useful. The old crazy openSingleData() and openData(horribleStuff)
are deprecated and will be removed in a future release.
No backwards compatibility is provided for font plugins, these need to
be adapted.
7 years ago
Vladimír Vondruš
88135b72bc
Text: doc++
7 years ago
Vladimír Vondruš
e198be76a1
Text: minor cleanup in the test.
7 years ago
Vladimír Vondruš
94ca8273e1
No need to leak GL headers everywhere.
7 years ago
Vladimír Vondruš
8e8010c40b
Document and print helpful error messages for GL-dependent features.
7 years ago
Vladimír Vondruš
8b748ace7d
Text: properly report failures from AbstractFontConverter.
7 years ago
Vladimír Vondruš
a5634f4bf4
Text: fix annoying warnings on GCC 4.8.
7 years ago
Vladimír Vondruš
834c5fe40d
Text: API-independent base for glyph caches.
...
Allows the Font and FontConverter plugins be built without TARGET_GL
enabled. That was the last piece missing for making the magnum-plugins
repo completely GL-free.
7 years ago
Vladimír Vondruš
215d50a087
Text: allow empty files in AbstractFont.
...
In particular, MagnumFont can be an empty.
7 years ago
Vladimír Vondruš
6a982f7841
Adapted to Corrade changes.
7 years ago
Vladimír Vondruš
e6db895452
Adapted to Corrade changes.
7 years ago
Vladimír Vondruš
697c17279c
Backwards compatibility for std::unique_ptr where needed.
7 years ago
Vladimír Vondruš
f9f3df69de
Get rid of std::unique_ptr.
7 years ago
Vladimír Vondruš
2149f7b869
Wrap all tests in unnamed namespaces.
...
This makes the compiler warn about test cases that aren't ever used,
which is a good thing.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
6cc7d2e3a5
Doxygen: extract private virtuals.
7 years ago
Vladimír Vondruš
00b0a814e0
Dropped GCC 4.7 support.
...
Interesting that many of the annoyances still apply to 4.8.
8 years ago
Pascal Thomet
50bf219e53
Text: fix ambiguous overload error that's happening with C++17 onwards.
8 years ago
Vladimír Vondruš
f0bb710cd3
TextureTools: make distance field processing into a stateful class.
8 years ago
Vladimír Vondruš
cb3a5cb515
Text: prefix private variables with an underscore.
8 years ago
Thomas Tissot
65b1931c62
Text: use proper formats for DistanceFieldGlyphCache on ES.
...
The unsized formats cause errors on drivers that support
EXT_texture_storage.
8 years ago
Vladimír Vondruš
b770d79fe0
Text: a barebones minimal test for DistanceFieldGlyphCache.
...
Not great at all, but at least makes it possible to test the
initialization.
8 years ago
Vladimír Vondruš
799d9b80db
Doc++
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š
c334d90870
Improve utility documentation even more.
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š
1f9fc43c92
Text: avoid assertion failure on ES2 with EXT_texture_rg.
...
Affects iOS, among others.
8 years ago
Vladimír Vondruš
8018b17bc7
Doxygen: renamed \extension[2] to \gl_extension[2].
...
So it's clear that this is not a Vulkan extension link.
8 years ago
Vladimír Vondruš
e2512ffee2
Text: unconditionally use TextureFormat::Luminance in GlyphCache on ES2.
...
Because now with the generic formats all images that are in
PixelFormat::R8Unorm are translated to GL::PixelFormat::Luminance on ES2
and WebGL 1. The DistanceFieldGlyphCache still has the original, but
that one didn't really work there in the first place. That'll get
patched later.
8 years ago
Vladimír Vondruš
23b46ac91a
Split the OpenGL layer out, pt 22: adapted Text.
8 years ago
Vladimír Vondruš
b1de952c13
Split the OpenGL layer out, pt 6: adapted buildsystem of dependent libs.
...
Now the rest should build with a lot of deprecation warnings.
8 years ago
Vladimír Vondruš
920db7aa73
Split the Trade library out.
8 years ago
Vladimír Vondruš
253d3131fc
Text: missing includes on platforms w/o dynamic plugin support.
8 years ago
Vladimír Vondruš
d48293c07f
Don't compile pluginSearchPaths() on platforms that don't need it.
8 years ago
Vladimír Vondruš
59f4ac57d2
Use the plugin dir autodetection in the command-line utilities.
...
But still make it possible for the user to override this.
8 years ago
Vladimír Vondruš
33fe70d7b5
Simplify the converter utility plugin loading code.
...
Also have different return codes for different kinds of errors.
8 years ago
Vladimír Vondruš
d1ed10c0a8
Implement pluginSearchPaths() for all plugin interfaces.
8 years ago