Vladimír Vondruš
49e093674e
MeshTools: check minimal vertex count in generateIndices() too.
...
Before it was checked only inside generate*IndicesInto() the function
delegates to, which was too late as the arrays would be allocated with
an insanely high size at that point.
3 years ago
Vladimír Vondruš
d51ad4213c
MeshTools: fix generateIndices() to work with attribute-less meshes.
...
The vertex count has to be explicitly propagated to the output in
that case because it can't be figured out from any attributes in this
case.
3 years ago
Vladimír Vondruš
18de7e2bb2
MeshTools: minor cleanup in a test.
3 years ago
Vladimír Vondruš
6bdffb2796
Test: make use of CORRADE_SKIP_IF_NO_ASSERT().
4 years ago
Vladimír Vondruš
7ccd58aa6f
Test: adapt to Tester::setTestCase*() taking Containers::StringView now.
...
So, no longer std::to_string() or Utility::formatString() because that's
one more conversion than strictly needed.
4 years ago
Vladimír Vondruš
822fa0d644
Updated copyright year.
4 years ago
Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
b77eafb9de
MeshTools: add generateQuadIndices().
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
Vladimír Vondruš
19e0e96d74
Updated copyright year.
6 years ago
Vladimír Vondruš
753f5afaeb
MeshTools: verify that array attributes are handled correctly everywhere.
...
Nowhere, actually. HAH.
6 years ago
Vladimír Vondruš
65a2ced2a7
Make this compile and test cleanly with CORRADE_NO_ASSERT defined.
6 years ago
Vladimír Vondruš
a7a0acd3a4
MeshTools: add a primitiveCount() utility.
...
I need it in magnum-player.
6 years ago
Vladimír Vondruš
b785a8ac69
MeshTools: generateIndices() operating directly on a MeshData.
6 years ago
Vladimír Vondruš
b57a9f1027
MeshTools: tools for generating index buffers out of various primitives.
6 years ago