Vladimír Vondruš
d0f57f0153
GL: actually, Mesa is detectable from the renderer string always.
...
No need to fetch the version string then.
5 years ago
Vladimír Vondruš
7ad928ae42
GL: make use of unmasked renderer string in Context::detectedDriver().
5 years ago
Vladimír Vondruš
f360c19426
GL: new "firefox-deprecated-debug-renderer-info" workaround.
...
Sigh. Webdevs, could you GROW UP and be clear upfront and CONSISTENT
about stuff getting deprecated?!
5 years ago
Vladimír Vondruš
13d62634d8
GL: implement WEBGL_debug_renderer_info.
...
Unlike most other extensions, this one has to be explicitly enabled in
Emscripten in order to be used. Which thus done as part of other "driver
workarounds" done on startup. To avoid that, the extension can be
explicitly disabled, and thanks to the previous commit the disabling
will be performed before the extension is attempted to be enabled.
5 years ago
Vladimír Vondruš
04d294eda0
GL: disable requested extensions before setting up driver workarounds.
...
This way it's possible to affect driver workarounds depending on certain
extensions to be present.
5 years ago
Vladimír Vondruš
86b454dc4e
doc: add a page aggregating WebGL-specific features.
...
The time have come to this. Sigh.
5 years ago
Vladimír Vondruš
3b82429db2
doc: rename \requires_gles20 to \requires_gles20_only.
...
So it's clearer it doesn't mean "GLES 2.0 and everything above", like
all other \requires_foo commands.
5 years ago
Vladimír Vondruš
d14dddc833
gl-info,vk-info: print remaining CORRADE_TARGET_* macros.
5 years ago
Vladimír Vondruš
cad1f68eba
doc: mention new KTX and glTF plugins.
5 years ago
Vladimír Vondruš
d96957b5a4
Platform: bah!
...
Commit b37df09892 was one of those "it's
so simple I don't even need to hit the Build button". Well.
5 years ago
Vladimír Vondruš
b37df09892
Platform: clean up leftovers after old deprecated viewportEvent().
...
There used to be a backwards compatibility code proxying to a function
that took just a single const Vector2& and this was left after it got
removed.
5 years ago
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