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š
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š
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
Vladimír Vondruš
d3937556b5
Ability to build the plugins either as dynamic or static.
13 years ago
Vladimír Vondruš
a5e7c19973
MagnumFont: simple bitmap font.
...
The fonts is simply a file with character and glyph parameters
along with glyph cache image. There is also MagnumFontConverter, which
allows to create the font from any currently opened font.
Added tests for both, they both need active GL context due to GlyphCache
instance. MagnumFont doesn't have test for creating glyph cache yet.
13 years ago
Vladimír Vondruš
96166663f1
Doxygen fixes.
13 years ago
Vladimír Vondruš
c53cb1b004
Adapted to Magnum changes.
...
Image constructor parameter reordering.
13 years ago
Vladimír Vondruš
cb9a66bd8a
Properly prefix visibility macros.
13 years ago
Vladimír Vondruš
6eeb014110
Removed superfluous namespaces.
...
Not sure how to handle everything properly (e.g. namespaces and naming
for implementation classes, tests...), will update coding style for
plugins accordingly later.
13 years ago
Vladimír Vondruš
978f9cc250
TgaImageConverter: export symbols for use as other plugin dependency.
13 years ago
Vladimír Vondruš
90a4e4a709
TgaImporter: simplified visibility macros.
13 years ago
Vladimír Vondruš
4d69b63fb6
Adapted to Magnum changes.
...
Removed redundant checks, hidden implementation to class privates.
13 years ago
Vladimír Vondruš
0ca9491244
TgaImporter: removed unneeded #include.
13 years ago
Vladimír Vondruš
8f08ae4baa
TgaImageConverter: don't forget about endianness.
13 years ago
Vladimír Vondruš
51075b91c5
TgaImageConverter: ported to OpenGL ES.
13 years ago
Vladimír Vondruš
e8fe82ac28
TgaImporter: don't include these headers if not really needed.
13 years ago
Vladimír Vondruš
d17248959e
TgaImporter: more verbose error when image type is not supported.
13 years ago
Vladimír Vondruš
b701dbb655
Adapted to Corrade changes.
13 years ago
Vladimír Vondruš
5d1fcd26d3
Adapted to Corrade and Magnum changes.
...
More shorter lines (sometimes even longer lines).
13 years ago
Vladimír Vondruš
089ec23c77
Adapted to Magnum changes.
...
Shorter lines, yay!
13 years ago
Vladimír Vondruš
3544b17fdf
New plugin TgaImageConverter.
13 years ago
Vladimír Vondruš
9f2ea8aa15
TgaImporter: test also file opening.
13 years ago
Vladimír Vondruš
ca9ed0150b
Adapted to Magnum changes.
13 years ago
Vladimír Vondruš
b71310f6d0
TgaImporter: moved TGA header structure to separate file.
...
Will be used elsewhere.
13 years ago
Vladimír Vondruš
cceba12569
TgaImporter: support for grayscale images, updated error messages.
...
The messages now print fully qualified function name.
13 years ago
Vladimír Vondruš
f8b8d93217
TgaImporter: minor code cleanup, blind ES compilation fix.
13 years ago
Vladimír Vondruš
4a657b77d2
TgaImporter: parsing the image on call to image2D().
...
Solves the problem about image deletion, the image is imported again on
every request and the user is responsible for its deletion. Now also
asserting that the file is opened and that the image ID is zero.
13 years ago
Vladimír Vondruš
0927138ff1
Adapted to Magnum changes.
13 years ago
Vladimír Vondruš
e8c3838065
TgaImporter: deinlined functions.
13 years ago