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š
d24a965c4b
Unbreak non-ES compatibility build.
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
Vladimír Vondruš
e55b4b80c6
Cleaned up and unified error and assertion messages.
13 years ago
Vladimír Vondruš
f7f380064c
Link plugins to their dependencies on Windows.
...
Fixes linker issues, not present anywhere else.
13 years ago
Vladimír Vondruš
82ffeaae01
Link plugin dependencies to libraries, not test executables.
...
The test executables shouldn't need it at all.
13 years ago
Vladimír Vondruš
533be4db3d
MagnumFontConverter: the test needs OpenGL.
13 years ago
Vladimír Vondruš
d442cb964e
Explicitly specify library types for *TestLib targets.
...
Use static libraries for plugins which aren't used as dependencies (as
they don't export any symbols anyway), use shared libraries for plugins
used as dependencies (as they already export the symbols and static
libraries cause linker errors on mingw32).
13 years ago
Vladimír Vondruš
1e5f4d68de
Fixed visibility macros for plugins used as dependencies.
...
The symbols weren't exported on mingw32, causing linker errors.
13 years ago
Vladimír Vondruš
b003e53f00
Wrap CMAKE_SHARED_LIBRARY_CXX_FLAGS in quotes.
...
The variable is empty on some platforms (Windows), would cause issues.
13 years ago
Vladimír Vondruš
4d4d3c5a33
GCC 4.5 compatibility: no range-based for.
13 years ago
Vladimír Vondruš
4725aa6687
MagnumFont: store glyph advance with glyphs, not characters.
...
Allows to store glyph advance also for notfound glyph, which is exactly
what we want for unknown characters. Also added version information to
allow further extensions.
13 years ago
Vladimír Vondruš
6807cd2b39
Adapted to Magnum changes.
13 years ago
Vladimír Vondruš
c22740543f
MagnumFontConverter: avoid double padding around the glyphs.
...
The glyphs were exported with the padding and when they were inserted
back into the cache later, the padding was added again.
13 years ago
Vladimír Vondruš
158b4153e6
GCC 4.4 compatibility: need some explicit typing.
13 years ago
Vladimír Vondruš
dfb516252d
GCC 4.4 compatibility: struct initializer is not available somehow.
13 years ago
Vladimír Vondruš
c6653b6fd7
GCC 4.4 compatibility: no lambda functions.
13 years ago
Vladimír Vondruš
337e9dce66
GCC 4.5 compatibility: no std::unordered_map::emplace().
13 years ago
Vladimír Vondruš
2502eb7438
GCC 4.5 compatibility: no range-based for.
13 years ago
Vladimír Vondruš
9ebfc456b9
MagnumFont: no need to use DistanceFieldGlyphCache.
...
We are providing already done font with parameters that GlyphCache can
handle. Moreover in ES DistanceFieldGlyphCache might expect RGB input
images because Luminance is not renderable in most cases, thus it
wouldn't work with Luminance TGA input.
13 years ago
Vladimír Vondruš
0eb828f67e
TgaImporter: return Luminance if EXT_texture_rg is not supported in ES.
...
Also documented the behavior.
13 years ago
Vladimír Vondruš
0012ec37f7
OpenGL ES build fix.
13 years ago