Vladimír Vondruš
673022b161
GL: deduplicate global defaultFramebuffer state across shared libraries.
...
Can't really automatically test this, unfortunately, as the windowless
tests don't operate on the default framebuffer.
5 years ago
Vladimír Vondruš
0517dd5c58
GL: no need to set _viewport twice in Framebuffer constructor.
...
That line was unchanged since 2012, so I don't think it carried some
meaning that escaped my attention.
5 years ago
Vladimír Vondruš
a2f7e1222b
DebugTools: fix CompareImage test to pass on MSVC 2019 16.10(11?).
...
Wow, it's just amazing how printing NaNs can differ among toolchains.
5 years ago
Vladimír Vondruš
78cf81bfca
Trade: mutable access to MaterialData attribute values.
...
Hah, so many overloads. Not providing mutable access to keys or layer
offsets as that would break the invariant of the internal array always
being sorted.
5 years ago
Vladimír Vondruš
1fb707497f
Trade: not sure why these would need to be in that ifdef.
5 years ago
Vladimír Vondruš
145d41dcff
Trade: doc++
5 years ago
Vladimír Vondruš
602f08881b
Trade: ensure AbstractImporter::fooForName() returns indices in bounds.
...
I just accidentally returned a wrong index from a SceneData backwards
compatibility wrapper and realized it'd be good to have that checked
always.
5 years ago
Vladimír Vondruš
6ce892f939
Math: doc++
5 years ago
Vladimír Vondruš
ff1b0ab307
Math: add off-center variants of 2D/3D orthographic projection as well.
...
Was just perspective projection right now.
5 years ago
Vladimír Vondruš
96c0d104c7
sceneconverter: don't forget to print mesh attribute array size, if set.
5 years ago
Vladimír Vondruš
5ef7bd26e7
Trade: improve MaterialData type mismatch assertions.
...
Followup to 26a0bf94ff where it was done
for MeshData, forgot that this class suffers from the same issue.
5 years ago
Vladimír Vondruš
ebfbfcbb73
Trade: doc++
5 years ago
Vladimír Vondruš
bdc36e5d7a
SceneGraph: properly decompose reflection in TRS transforms.
...
The test (that started asserting instead of failing after previous
commit) now passes.
5 years ago
Vladimír Vondruš
3697125c7d
Math: disallow reflections in {Complex,Quaternion}::fromMatrix().
...
And update docs in Matrix[34]::rotation() and related functions to note
this. This is a breaking change that may cause existing code to start
asserting.
5 years ago
Vladimír Vondruš
1f55165941
SceneGraph: test that TRS transforms properly decompose reflection.
...
They do not.
5 years ago
Vladimír Vondruš
bd53b2ed1a
Math: doc++
5 years ago
Vladimír Vondruš
87d8b33dbe
Math: test QR and SVD with rotation and scaling instead of shear.
...
QR gives a reasonable result this time, SVD gives kinda the same thing
but with the actual rotation in U instead of V.
5 years ago
Vladimír Vondruš
e9f2101b15
Math: added Distance::pointPoint() and Intersection::pointSphere().
...
Those add nothing of value as they only wrap trivial code, but make the
operations easier to discover, and that's what matters.
5 years ago
Vladimír Vondruš
f9661fe402
Math: add castInto() variants for UnsignedLong/Long.
...
There's now 24 overloads for unsigned types and 24 for signed types,
which is all possible combinations. Not adding an ability to cast
between signed and unsigned as I'm not sure what should be done there.
5 years ago
Vladimír Vondruš
781c5c3e08
Trade: doc++
5 years ago
Vladimír Vondruš
d09e91cac8
external: avoid crashes on eglGetString() returning a nullptr.
5 years ago
Vladimír Vondruš
b79bc18219
doc: updated credits and changelog.
5 years ago
Hans Loeblich
bd8284324f
doc: suggest dpkg-buildpackage --no-sign for a smoother experience.
...
Otherwise it ends with an error message which leads people to think the
package wasn't built.
5 years ago
Vladimír Vondruš
fcfcabcaa9
Doc++
...
Some silly stupidities.
5 years ago
Vladimír Vondruš
2caa3e501e
doc: TinyGltfImporter can be thought of as pretty much caveat-less.
5 years ago
Vladimír Vondruš
9b41947dbc
Trade: doc++
5 years ago
William JCM
dbec10dbee
GL: typo.
5 years ago
Vladimír Vondruš
813d82717f
Trade: no need to export this helper.
5 years ago
Vladimír Vondruš
25320af545
Trade: pass strided views by const&.
...
Those have 3 pointers at least, my limit for passing by value is trivial
copyability and two pointers. I hope that reflects the actual HW at
least vaguely, heh.
5 years ago
Vladimír Vondruš
2b2b7d5f2f
Trade: provide a clear doc snippet for AbstractImporter::openData().
...
The snippet with callbacks was too heavyweight for this kind of
operation and workflow with in-memory data may be non-obvious to some
users.
5 years ago
Vladimír Vondruš
5c06eecde8
Trade: actually, do it like this.
5 years ago
Vladimír Vondruš
bf6caece50
Trade: fix MeshData range checks for array attributes.
...
And add a comment explaining why we don't check the pointer for empty
meshes -- otherwise empty interleaved meshes would fail with stuff like
Trade::MeshData: attribute 0 [0xc:0xc] is not contained in passed
vertexData array [0x0:0x0]
which ... helps nobody.
5 years ago
Vladimír Vondruš
b4666a2194
Trade: improve tests for MeshData index/attribute view range checks.
...
Found a bug with attribute array size not being taken into account. It
triggers now.
5 years ago
Vladimír Vondruš
2059b2b164
Trade: doc++
5 years ago
Vladimír Vondruš
093957a6ed
Trade: no need to zero-init memory in MeshData::*AsArray() helpers.
...
It's all going to get overwritten by the data anyway, so this just
unnecessarily hurts perf.
5 years ago
Vladimír Vondruš
3eb5f887d0
Trade: move a helper definition above where it's used first.
5 years ago
Vladimír Vondruš
cc8d88cbb1
Trade: move a test case to where it fits better.
5 years ago
Vladimír Vondruš
206c4d7a9e
Trade: no need to type that much.
5 years ago
Vladimír Vondruš
26a0bf94ff
Trade: improve MeshData type mismatch assertions.
...
We *do* know what type the user requested, so why not print it as well.
And for the array access the message was especially lazy.
5 years ago
Vladimír Vondruš
7a91b56aa1
Trade: test all MeshData mutable/array attribute assertion variants.
5 years ago
Vladimír Vondruš
c904cd0599
Trade: properly propagate array size from MeshData::attributeData().
...
The test now passes again.
5 years ago
Vladimír Vondruš
f4da3d78cc
Trade: merge MeshData array attribute tests with the main test.
...
Because otherwise we don't properly test all cases. Case in point --
attributeData(UnsignedInt) wasn't correctly propagating the array size,
causing the new tests to fail. Fix in the next commit.
5 years ago
Vladimír Vondruš
0ba5f33f73
Trade: consistent terminology in an assert message.
5 years ago
Vladimír Vondruš
343fc8794d
Trade: don't need to delegate trivial things.
5 years ago
Vladimír Vondruš
c24a762e15
Trade: not sure what's up with this silly temporary.
...
Some places have it, some don't. It's shorter without.
5 years ago
Vladimír Vondruš
2b8d9c7e74
Trade: internal API was named in an outdated way.
...
Long ago, during one of the few initial MeshData iterations. there was
no VertexFormat, but rather Trade::MeshAttributeType. I managed to get
rid of it mostly, except this place.
5 years ago
Vladimír Vondruš
fe57f23e12
Trade: const++
5 years ago
Vladimír Vondruš
e1d62fb154
Trade: typos.
5 years ago
Vladimír Vondruš
46a6724198
Trade: doc++
5 years ago
Vladimír Vondruš
03b7adf71b
imageconverter: some examples of how to use the new functionality.
...
Originally I wanted to show how to convert a JPEG to an EXR directly,
however after trying and miserably failing to implement that inside
OpenExrImageConverter I realized the plugin is definitely not the place
where to perform such conversion. So this will have to wait until
there's some proper API in TextureTools or somewhere.
5 years ago