Vladimír Vondruš
686e215725
GCC 4.6 compatibility: can't use both constexpr and const.
13 years ago
Vladimír Vondruš
3b03da5d5e
Made ImageReference data pointer constant.
...
ImageReference is supposed to be wrapper around existing data array of
some type which is passed to Magnum functions. Thus modifying the
original data array (which must be kept somewhere for proper deletion)
is much better option than casting the pointer returned by data() to
some proper type and then operating on that. Hopefully this won't break
any existing code.
13 years ago
Vladimír Vondruš
ee045d261a
Make some type conversions explicit.
...
Fixes a bunch of MSVC warnings.
13 years ago
Vladimír Vondruš
13351f9371
Install all *TestLib libraries on Windows.
...
They are needed when running tests.
13 years ago
Vladimír Vondruš
d00aa0c560
doc: thoroughly explained plugin usage.
13 years ago
Vladimír Vondruš
fff5950253
MagnumFontConverter: use Range::padded().
13 years ago
Vladimír Vondruš
2c97326d8d
std::fstream accepts filename as std::string in C++11.
...
Finally.
13 years ago
Vladimír Vondruš
ce9a9212ca
Fix linking of tests in static Windows build.
...
Also fixes the "multiple definition" Emscripten issue, which was worked
around in f44af271df .
13 years ago
Vladimír Vondruš
f86a60c82d
Fix static build on Windows.
13 years ago
Vladimír Vondruš
9b6b4377e9
Make inter-project includes with "" and dependency includes with <>.
13 years ago
Vladimír Vondruš
f44af271df
TgaImageConverter: workaround for linking error in the test.
...
Due to some weird bug (?) llvm-link complains about multiply defined
symbol.
13 years ago
Vladimír Vondruš
ce470aede7
MagnumFont{,Converter}: these tests also need GL, set GLTest suffix.
13 years ago
Vladimír Vondruš
e6b15ed797
MagnumFont: save one division per glyph.
13 years ago
Vladimír Vondruš
ee8f757419
Using Range2D instead of Rectangle everywhere.
...
Encourages vectorization and generic usage even more. Some functions
were rewritten to make use of the new features, resulting in shorter and
more readable code. This also fixes the annoying naming collision with
WINAPI Rectangle() function.
The old Rectangle is now subclass of Range2D, is marked as deprecated
and will be removed in future release.
13 years ago
Vladimír Vondruš
c2ad09706e
Fixed compilation with GCC 4.9.
...
Standards-conforming STL implementation has no implicit default
constructor for std::vector, making me write this ugly verbose code.
13 years ago
Vladimír Vondruš
f163009f45
TgaImporter: ColorFormat::Luminance is available only on ES2.
13 years ago
Vladimír Vondruš
1a608a5b7e
TgaImporter: fix test on ES2.
13 years ago
Vladimír Vondruš
121d3a91bc
MagnumFont: fixed compilation with Clang.
13 years ago
Vladimír Vondruš
090006d818
TgaImageConverter: use static data and ImageReference instead of `new`.
13 years ago
Vladimír Vondruš
6dc6404161
WavAudioImporter: explicitly find OpenAL also here.
...
Fixes random issues with al.h not found (based on whether Audio library
CMakeLists.txt gets processed before or after this plugin).
13 years ago
Vladimír Vondruš
77fbed450e
GCC 4.6 compatibility: apparently can't list-initialize a structure.
13 years ago
Vladimír Vondruš
4048071895
GCC 4.6 compatibility: no std::unordered_map::emplace().
13 years ago
Vladimír Vondruš
573e18eabd
Broken std::u32string is also only MinGW32's fault.
...
MSVC doesn't have it at all, for security reasons ;-)
13 years ago
Vladimír Vondruš
3183f613b5
Fix: inexistent -> nonexistent.
...
No public change, only tests.
13 years ago
Vladimír Vondruš
3003cbea2e
Text: moved common glyph render code into AbstractLayouter::renderGlyph().
...
The virtual method is moved to doRenderGlyph(), for plugin implementers
it means that the function only needs to be renamed (and moved to private
section) and plugin version interface needs to be updated.
The common layouting code allows to remove many redundant code from
Renderer and also ability to test cursor position/bounding rectangle
updated properly. Rectangle updating now treats rectangle with zero size
as invalid and replaces it with glyph quad instead of merging the two. It
means that the returned rectangle now wraps the text more tightly and
does not always contain origin.
13 years ago
Vladimír Vondruš
8392990794
MagnumFont[Converter]: support for line height.
13 years ago
Vladimír Vondruš
858c9787f0
Text: initial support for line height in AbstractFont.
...
Got finally pissed with the requirement of setting AbstractFont::_size
manually and took this as opportunity to rework the internal plugin API
in a better way. Bumped the interface version, as this is binary
incompatible. MagnumFont doesn't support lineHeight yet.
13 years ago
Vladimír Vondruš
2829a95ce9
MagnumFont: removed some probably forgotten debug output.
13 years ago
Vladimír Vondruš
8003cd435a
Text: returning std::unique_ptr instead of raw pointer.
...
Avoids memory leaks (I made one in the test, fail).
13 years ago
Vladimír Vondruš
c9ad947136
Plugins: mark the includes as inter-project, not external.
13 years ago
Vladimír Vondruš
f29ea2140f
Fixed ES build without deprecated API.
13 years ago
Vladimír Vondruš
b3d1bd1f9b
Plugins: fixed ES build of TgaImageConverter.
13 years ago
Vladimír Vondruš
9c356d052c
Plugins: remove the need for FreeTypeFont in MagnumFontConverter test.
13 years ago
Vladimír Vondruš
08c4802bd2
Plugins: skip the unimplemented test case instead of failing whole test.
...
It is better to run automatically all tests than to manually check that
only this one error is present.
13 years ago
Vladimír Vondruš
3fb969d397
Integrated plugins into build system and updated the documentation.
13 years ago
Vladimír Vondruš
fc73848277
Improved building and CMake usage documentation.
13 years ago
Vladimír Vondruš
7b1f9c366e
Don't forward-declare struct as class.
...
Spotted by Clang.
13 years ago
Vladimír Vondruš
b7e241f17a
Adapted to Magnum changes.
13 years ago
Vladimír Vondruš
410d3d0cd7
WavAudioImporter: fix linker error on Windows.
13 years ago
Vladimír Vondruš
361fc7b877
Windows build fixes (working around std::u32string bugs).
13 years ago
Vladimír Vondruš
d43db99e86
MagnumFont[Converter]: adapted to Magnum changes.
...
Forgot to call `delete` here too.
13 years ago
Vladimír Vondruš
b84dc709f8
TgaImporter, TgaImageConverter: adapted to Magnum changes.
...
It looks like I forgot to `delete` three times in the tests. It just
proves that the previous API was flawed (or unusable for people spoilt
with RAII like me).
13 years ago
Vladimír Vondruš
f5afcc055d
Adapted to Magnum changes.
...
Oh boy.
13 years ago
Vladimír Vondruš
840b8be08c
Removed enum-referencing Doxygen workarounds.
13 years ago
Vladimír Vondruš
d972bd40de
New plugin WavAudioImporter.
13 years ago
Vladimír Vondruš
8ca25de2ec
TgaImporter: minor cleanup.
...
Reset back to default packing (it's 8, but this looks better like
default).
13 years ago
Vladimír Vondruš
5b0d0fe943
Adapted to "pointer chasing" Magnum changes.
13 years ago
Vladimír Vondruš
2835f6cc13
Properly update tests after message cleanup.
...
Followup to 03e81361c979c2f92ed646c2bef1cd615bfe9ba9. I should test
before pushing.
13 years ago
Vladimír Vondruš
c5685d5f30
No need to make destructors as virtual.
...
The parent ones are marked already.
13 years ago
Vladimír Vondruš
e60306d3d7
MagnumFont: don't forget to close on destruction.
13 years ago