Vladimír Vondruš
f052fc43ec
Trade: oh, those material APIs were also long-deprecated. Delete.
6 years ago
Vladimír Vondruš
8b97946996
Trade: Y tho.
6 years ago
Vladimír Vondruš
cd48c59cab
Remove remaining APIs deprecated in 2018.10.
6 years ago
Vladimír Vondruš
5222cf3478
doc: change all "latest" additions/deprecations to 2020.06.
6 years ago
Vladimír Vondruš
a5722f175a
Doc++
6 years ago
Vladimír Vondruš
769e27340f
Trade: AbstractImporter::importerState() expects a file to be opened.
...
The restriction was there always, but was undocumented and untested.
6 years ago
Vladimír Vondruš
4933b48652
imageconverter,sceneconverter: compact image info if possible.
...
If the images have all just a single level and no names, print each on
just a single line.
6 years ago
Vladimír Vondruš
96f82ad124
Trade: unify array MeshAttributeData constructors.
...
The array size is always last, defaulting to 0. This makes it consistent
with the offset-only constructor and removes two unnecessary overloads.
It's a breaking change, but I don't think array attributes have many
users yet -- and better to do this now than later. In any case, sorry
about breaking your code.
6 years ago
Burak Canik
c5574d89e7
Add missing UnsignedInt cast.
6 years ago
Vladimír Vondruš
19e0e96d74
Updated copyright year.
6 years ago
Vladimír Vondruš
de00da7040
imageconverter: doc++
6 years ago
Vladimír Vondruš
5c954a22be
imageconverter: split error handling for file opening and image loading.
6 years ago
Vladimír Vondruš
413dc56670
imageconverter: support image & level selection.
6 years ago
Vladimír Vondruš
f5822e9384
Trade: properly include array size in attribute stride checks.
6 years ago
Vladimír Vondruš
dca9dc492d
Trade: fix ambiguity when instantiating nullptr array MeshAttributeData.
6 years ago
Vladimír Vondruš
521a3dac0b
Trade: make creation of non-owning MeshData references easier.
...
While 27f6cc309d made it easier to create
references to attribute-less meshes by avoiding a branch on
attributeCount() (and then using a constructor with explicit vertex
count), code still had to branch on isIndexed() because indices() could
be called only on indexed meshes. This change allows code like
Trade::MeshData reference{data.primitive(),
{}, data.indexData(), Trade::MeshIndexData{data.indices()},
{}, data.vertexData(), Trade::meshAttributeDataNonOwningArray(data.attributeData()),
data.vertexCount()};
which works correctly for all cases and doesn't introduce extra branches
and code paths that would need to be tested. While definitely better, I
might still give up at some point and introduce some
Trade::MeshData::nonOwningImmutableReference() helper for this.
6 years ago
Vladimír Vondruš
fb32dd4c0e
imageconverter,sceneconverter: support option subgroups as well.
6 years ago
Vladimír Vondruš
2dc47839ef
Trade: bootstrap scene converter plugins.
6 years ago
Vladimír Vondruš
b7edd8df25
sceneconverter: move the utility from Trade to MeshTools.
...
So it can make use of all the APIs in here. Having the utility part of
Trade would make the cyclic dependency a bit weird. Not adding MeshTools
as a dependency just yet, will do that once it's actually needed.
6 years ago
Vladimír Vondruš
806e080008
doc: updated changelog and credits.
6 years ago
Vladimír Vondruš
f1fbafb816
Trade: add a similar assert check for Phong textureMatrix as well.
6 years ago
Squareys
b8cc3f766a
Trade: add *TextureLayer() properties to PhongMaterialData.
...
Signed-off-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
299cf7740f
imageconverter,sceneconverter: add a --verbose option.
6 years ago
Vladimír Vondruš
0bdb70fcf6
Trade: add flags to AbstractImporter and AbstractImageConverter.
6 years ago
Vladimír Vondruš
4090a88c97
Rework plugin search paths using new Corrade APIs.
6 years ago
Vladimír Vondruš
877c13efa3
Trade: minor.
6 years ago
Vladimír Vondruš
8192278f26
Trade: wtf, stone age still shining through this file.
6 years ago
Vladimír Vondruš
65a2ced2a7
Make this compile and test cleanly with CORRADE_NO_ASSERT defined.
6 years ago
Vladimír Vondruš
d3f2235759
Adapted to Corrade changes.
6 years ago
Vladimír Vondruš
73f1fa7724
Trade: minor.
6 years ago
Vladimír Vondruš
95c93c928a
Trade: reorganize MeshAttributeData internals for better serializability.
...
Put the pointer that differs in size on 32 and 64bit platforms last so
we have at least the prefix always stable. This also makes it possible
to extend the class to store 8/16 bytes of arbitrary data in there
(bounds etc.). Not doing that yet, just preparing for possible
extension.
6 years ago
Vladimír Vondruš
dac646e66b
Trade: repack MeshData internals to save 8 bytes on 64-bit.
...
Now it's a 104-byte structure, was 112 before.
6 years ago
Vladimír Vondruš
d3df37e767
Trade: clean up unneeded namespace prefixes.
6 years ago
Vladimír Vondruš
3c81d9e4c8
Trade: doc++
...
Not bothering with all the engrish there, this thing needs an overhaul
anyway.
6 years ago
Vladimír Vondruš
818968f6c5
Trade: simplify AbstractImageConverter test.
...
Similarly to what was done for AbstractImporterTest before.
6 years ago
Vladimír Vondruš
f2c1f3c059
Trade: who did this indentation?!
6 years ago
Vladimír Vondruš
6aa232fa0c
Trade: doc++
6 years ago
Vladimír Vondruš
3b4093da14
Doc++
6 years ago
Vladimír Vondruš
1c51b98d76
Trade: new magnum-sceneconverter tool.
...
Currently provides just the --info option similarly to
magnum-imageconverter, nothing else.
6 years ago
Vladimír Vondruš
92655c7238
Trade: implement magnum-imageconverter --info.
...
Useful for inspecting unknown files.
6 years ago
Vladimír Vondruš
0df0bd58ef
Trade: improve docs of magnum-imageconverter.
6 years ago
Vladimír Vondruš
18f9581d4e
Trade: extract reusable code out of magnum-imageconverter.
...
Will be needed by magnum-sceneconverter as well.
6 years ago
Vladimír Vondruš
c3299ad3c5
Trade: print a message when named thing is not found.
...
Otherwise it's hard to distinguish whether it's a particular importer
fault (failing without a message) or if the name is not found.
6 years ago
Vladimír Vondruš
4a6e5ff5a4
Trade: reduce needless duplication in AbstractImporter test.
...
Should have done this since the beginning, would save my carpal tunnels
a bit.
6 years ago
Vladimír Vondruš
081dd8981f
Doxygen, FFS.
6 years ago
Vladimír Vondruš
8085ebba09
Trade: fix tangent retrieval from four-component normalized types.
...
By accident this code path was not tested, and of course it had a bug.
6 years ago
Vladimír Vondruš
0c3a7fabae
Trade: recognize also Matrix3/Matrix4 types.
6 years ago
Vladimír Vondruš
f3a92c2afb
Shaders: rethink generic attribute allocation from scratch.
...
This adds binormals, object IDs and instanced transformation, but has to
break existing locations in order to provide new guarantees.
6 years ago
Vladimír Vondruš
159c4ece50
Trade: add a TODO.
6 years ago
Vladimír Vondruš
8a2a7e4547
Trade: implement support for object IDs in MeshData.
6 years ago