Vladimír Vondruš
45a10cefdf
Making includes absolute, part 1: moving files around.
...
Everything what was in src/ is now in src/Corrade, everything from
src/Plugins is now in src/MagnumPlugins, everything from external/ is in
src/MagnumExternal. Added new CMakeLists.txt file and updated the other
ones for the moves, no other change was made. If MAGNUM_BUILD_DEPRECATED
is set, everything compiles and installs like previously except for the
plugins, which are now in MagnumPlugins and not in Magnum/Plugins.
13 years ago
Vladimír Vondruš
5b56235084
Adapted to Corrade changes.
13 years ago
Vladimír Vondruš
2c97326d8d
std::fstream accepts filename as std::string in C++11.
...
Finally.
13 years ago
Vladimír Vondruš
f163009f45
TgaImporter: ColorFormat::Luminance is available only on ES2.
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š
b7e241f17a
Adapted to Magnum changes.
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š
e55b4b80c6
Cleaned up and unified error and assertion messages.
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š
c53cb1b004
Adapted to Magnum changes.
...
Image constructor parameter reordering.
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š
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š
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š
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š
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
Vladimír Vondruš
29fd52b3e6
Relicensing to MIT/Expat license, part 3: source files.
...
License header was not added to COLLADA test files (because it should be
then also added to TGA test files, which is impossible).
13 years ago
Vladimír Vondruš
dc6b8a52eb
Adapted to Magnum changes (own type aliases).
13 years ago
Vladimír Vondruš
4c8cf7c8fa
Include cleanup.
13 years ago
Vladimír Vondruš
cd00422e4f
TgaImporter: adapted to Magnum changes.
...
Not storing image name inside ImageData greatly simplifies the
implementation. Also using `override` keyword where possible.
13 years ago
Vladimír Vondruš
40b1b1ea2b
Adapted to Magnum changes.
14 years ago
Vladimír Vondruš
884db80152
No `using namespace std` anywhere.
...
Also added missing std:: prefix to remaining cases of std::size_t,
std::[u]int[0-9]+_t, std::sin() etc., std::exit().
14 years ago
Vladimír Vondruš
050eb89d47
Adapted to Corrade changes.
14 years ago
Vladimír Vondruš
92e250b600
Adapted to Magnum changes.
14 years ago
Vladimír Vondruš
f58ccfa1f7
Adapted to (old) Magnum changes.
14 years ago
Vladimír Vondruš
68ea16ea99
TgaImporter: ported to work also with OpenGL ES.
...
OpenGL ES doesn't have BGR and BGRA, swizzling pixel values to make it
RGB and RGBA there.
14 years ago
Vladimír Vondruš
21ef62201d
Treat Corrade includes as real, not internal dependency.
14 years ago
Vladimír Vondruš
6cd334d9c3
Anonymized unused function parameter.
14 years ago
Vladimír Vondruš
e75db8aede
Don't use C-style casts.
14 years ago
Vladimír Vondruš
3cb611cbbf
TgaImporter: quick ugly fix - don't delete the image data on closing.
...
It causes problems in ColladaImporter, because it uses TgaImporter for
opening the image, then takes ownership of the data and then destroys
the importer. Need to think this thoroughly.
14 years ago
Vladimír Vondruš
dc0895142a
Ability to explicitly specify name for image from TgaImporter.
14 years ago
Vladimír Vondruš
6f3c2ac5ec
Adapted to Magnum changes.
14 years ago
Vladimír Vondruš
f4ff7de611
Revert "Adapted to Magnum changes."
...
Don't commit without testing.
This reverts commit e709ad800bb7ca4b63ddab4b4e8b3ae1f8113fb7.
14 years ago
Vladimír Vondruš
18e9e7aa93
Adapted to Magnum changes.
14 years ago
Vladimír Vondruš
7d277b81e7
Hide static_assert from documentation.
14 years ago
Vladimír Vondruš
186adfbd73
Fixed plugin registration after recent object library changes.
14 years ago
Vladimír Vondruš
2d063825c3
TgaImporter: minor cleanup
14 years ago
Vladimír Vondruš
1f4e6022ac
TgaImporter: check if the file is long enough.
...
Prevents undefined behavior when opening e.g. empty files.
14 years ago
Vladimír Vondruš
595f23b06e
Adapted to Magnum changes.
14 years ago
Vladimír Vondruš
391cb0fa9a
TgaImporter: error output everywhere where it makes sense.
14 years ago
Vladimír Vondruš
02f1f32eda
Adapted to Corrade changes.
14 years ago