Vladimír Vondruš
c30bfa76ab
AnyImageImporter: proxy 1D and 3D images as well.
...
There's no format/plugin that would support these at the moment, so just
placeholder test cases for now.
5 years ago
Vladimír Vondruš
95d19de8f0
ShaderTools,Trade: test printing of Feature flag supersets.
5 years ago
Vladimír Vondruš
360ca834e1
Trade: GCC 11 CAN YOU STOP with the pointless fucking warnings.
...
The "funniest" of all is that those get printed in a totally random
fashion. Some in Debug, some in Release, some not at all (like, half of
the MaterialDataTest doesn'ŧ initialize `state` and yet it doesn't
complain). Fuck these half-assed features that achieve nothing except
bullying people WHO KNOW WHAT THEY ARE DOING FFS.
5 years ago
Vladimír Vondruš
abda09298a
Math: haha std::pair you silly stupid thing.
5 years ago
Vladimír Vondruš
7d82352a13
Math: add an ability to construct a Range1D from Math::Vector<1, T>.
...
A Vector<1, T> is implicitly constructible from T but not vice versa (to
avoid nasty collisions with builtin operators on scalars) so this is
needed.
5 years ago
Vladimír Vondruš
4c4b259676
Trade: add TextureType::Texture1DArray, Texture2DArray and CubeMapArray.
5 years ago
Vladimír Vondruš
046b9558b7
Trade: rename/deprecate TextureData::Type to TextureType.
...
Because::This::Is::Colon::Cancer. Also rename Cube to CubeMap and get
rid of the comment that said cube map images are six consecutive 2D
images. Now it's one 3D image instead because that makes more sense, in
the very rare case we'd need to have six different images again we could
probably add a CubeFace value or some such.
5 years ago
Vladimír Vondruš
9d4a8b4994
Document the differences between various BC format encodings.
...
Since I needed to know that quite often and Wikipedia has a too high
noise ratio for this kind of information.
5 years ago
Vladimír Vondruš
3097c4c1f0
Math: class-level documentation for Matrix3 and Matrix4.
...
Another one that was long on my TODO list.
5 years ago
Vladimír Vondruš
90e8798d36
Trade: "flip Y" is not a good idea, "Y up" is clearer.
5 years ago
Vladimír Vondruš
6eb0a52228
ShaderTools,Text: update plugin interface docs accordingly to Trade.
...
Don't care about Audio, that thing will be gone eventually anyway.
5 years ago
Vladimír Vondruš
4a06f4d048
Trade: improve docs for the main importer / converter plugins.
...
Interestingly enough, there were no docs whatsoever for image and scene
conversion, and neither it was mentioned what all scene data can be
imported. Sigh.
5 years ago
Vladimír Vondruš
2479b34165
AnySceneConverter: forgot to say this is since 2020.06, huh.
5 years ago
Vladimír Vondruš
2891ea3a0f
doc: mention also how Magnum handles errors.
...
Or HOW IT EXPLODES STRAIGHT IN YOUR HANDS
5 years ago
Vladimír Vondruš
a2b8fb73c2
doc: freshen up plugin-related documentation.
5 years ago
Vladimír Vondruš
780ba2fd99
doc: prettier responsive button layout.
5 years ago
Vladimír Vondruš
2347a7f730
doc: updated changelog.
5 years ago
Vladimír Vondruš
83f18b2313
doc: *finally* document the library organization and essential tools.
5 years ago
Vladimír Vondruš
c13c61e17d
Trade: hint on related APIs in mutable MeshData access.
5 years ago
Vladimír Vondruš
2bd933d3ef
doc: add docs for GL context asserts and other troubleshooting.
5 years ago
Vladimír Vondruš
27b0527fc0
Trade: use consistent naming in an assert message.
5 years ago
Vladimír Vondruš
49a5756f70
Trade: minor.
5 years ago
Vladimír Vondruš
1c3f4844e9
Trade: doc++
5 years ago
Squareys
e72a440720
Math: typo.
5 years ago
Vladimír Vondruš
c59c48c75f
sceneconverter: list skins in --info.
5 years ago
Vladimír Vondruš
120286a930
Add Degh, Radh and Range*Dh typedefs.
...
We have half-float vectors and matrices, so why not these as well. Not
sure for what all is the angle precision usable, but at the very least
it could be useful for compact meshlet occlusion cone / AABB
representation or rough animations.
5 years ago
Vladimír Vondruš
047c539a17
ÄnyImageImporter: recognize BMP header magic.
...
I needed to know the signature for a StbImageConverter test, so why not
add it here as well now that I managed to figure that out.
5 years ago
Vladimír Vondruš
c1c02dea58
Trade: make Abstract{Image,Scene}Converter::doConvertToFile() protected.
...
This is already done for the AbstractImporter and the new
AbstractShaderConverter, as there's a common use case of checking just
the filename for input/output path or file type detection and then
delegating to the common implementation working directly on data.
5 years ago
Vladimír Vondruš
48838c442f
Adapt to Corrade changes.
5 years ago
Vladimír Vondruš
416704fa47
Any{Image,Scene,Shader}Converter: modernize the string code a bit.
...
Only those use StringViews in the plugin API so far, importers not yet.
5 years ago
Vladimír Vondruš
6087107e0d
Trade: don't use deprecated APIs in deprecated APIs.
...
Because MSVC IS STUPID and emits a ton of warnings here. All sane
compilers are sane and silent. It doesn't fucking make sense to warn
here, COME ON.
5 years ago
Vladimír Vondruš
99395eb69a
Doc++
5 years ago
Vladimír Vondruš
e6d673c279
Propagate configuration options in Any* plugins.
...
Minor but very important convenience feature, especially useful when
dealing with command-line apps. This now works:
magnum-imageconverter a.png a.jpg -c jpegQuality=0.75
The AnyImageConverter gets the jpegQuality option and then
automatically propagates it to the concrete plugin (which is either
JpegImageConverter or StbImageConverter), possibly warning in case the
target plugin doesn't recognize given option (i.e., doesn't list it in
its default configuration). Previously the user had to always specify a
concrete converter implementation using -C, which was rather annoying
and nonintuitive.
5 years ago
Vladimír Vondruš
4d61cda4a3
AnyImageImporter: don't expect metadata to be present too early.
...
The check that the plugin is loadable should happen before this, not
after. All other importer plugins do that already.
5 years ago
Vladimír Vondruš
23712c414e
AnyShaderConverter: assert the metadata validity always.
...
Practically the metadata shouldn't be null if we managed to load the
plugin already, so this was probably harmless. But dumb.
5 years ago
Vladimír Vondruš
3452fd7a24
AnyShaderConverter: adapt tests to GlslangShaderCovnerter updates.
5 years ago
Vladimír Vondruš
50e75f90c8
AnyImageConverter: rename a test macro for clarity.
5 years ago
Vladimír Vondruš
15ddae576b
AnyImageConverter: add placeholder tests for compressed 2D support.
5 years ago
Vladimír Vondruš
d6a3be571b
AnySceneConverter,AnySceneImporter: expand tests with external plugins.
...
The AnyShaderConverter tests are doing this already anyway, so why not
here as well.
5 years ago
Vladimír Vondruš
22d1484814
Test: rename Any* plugin test cases for clarity.
5 years ago
Vladimír Vondruš
fb2eddb6bb
doc: updated credits and changelog.
5 years ago
Aaron Gokaslan
ca677c69fe
Fix typos
5 years ago
Vladimír Vondruš
ffdbae5974
ObjImporter: fix a GCC 11 warning.
...
Ew, this code is terrible.
5 years ago
Vladimír Vondruš
7346dc2d01
package/ci: move a comment to where the macOS image is defined.
5 years ago
Vladimír Vondruš
f216320da6
GCC 11, your fancy new warnings are NOT helpful.
5 years ago
Vladimír Vondruš
202dff63ae
package/ci: MSYS, the ancient curses seem to have returned.
5 years ago
Vladimír Vondruš
c942e3e764
Shaders: Bitangent is disallowed only with InstancedObjectId.
...
With just ObjectId it's fine. Sorry for a silly breakage!
5 years ago
Vladimír Vondruš
93fd668387
Shaders: wait, this should work, and not assert.
5 years ago
Vladimír Vondruš
3102678d19
doc: updated credits.
5 years ago
Aaron Gokaslan
2f31891420
Add noexcept here as well.
5 years ago