Vladimír Vondruš
169031fb7b
GL: reset element buffer binding state tracker when switching VAOs.
...
Fixes the failing test from previous commit and obsoletes another
incomplete and ugly state tracking fix.
7 years ago
Vladimír Vondruš
df463d5452
GL: test yet another interaction of VAOs and index buffer binding.
...
Fails (well, why else would I be adding the test, right?).
7 years ago
Vladimír Vondruš
4c8195ec9b
GL: new --magnum-gpu-validation command-line option.
...
Enables KHR_debug, if available. This should have been here since ages.
7 years ago
Vladimír Vondruš
4f2f29d1bb
GL: use EnumSet instead of bool for internal flags.
...
There will be more soon.
7 years ago
Vladimír Vondruš
4ab3633d5b
Trade: clarifying comment.
7 years ago
Vladimír Vondruš
df5b09744f
SceneGraph: fix build with latest Corrade.
...
TBF, I'm increasingly unhappy with this abomination.
7 years ago
Vladimír Vondruš
1346573798
Platform: document that GlfwApplication::swapInterval() doesn't exist.
7 years ago
Vladimír Vondruš
9a8e874eb4
Math: minor cleanup.
7 years ago
Vladimír Vondruš
5bfdd71af6
Math: microoptimizations.
7 years ago
Vladimír Vondruš
5a010269bd
Math: implement component-wise bool operations on BoolVector.
7 years ago
Vladimír Vondruš
a1356decdd
Platform: extend GLFW and SDL2 test applications.
...
Was checking how text input and key events are related.
7 years ago
Vladimír Vondruš
d0673816ef
Animation: fix TrackView to have the same default extrapolation as Track.
7 years ago
Vladimír Vondruš
e75c7639e7
Math: test Matrix[34]::scalingSquared().
7 years ago
Vladimír Vondruš
b31f886fe2
DebugTools: deprecate ForceRendererOptions::scale() in favor of size().
...
Who named it like that?!
7 years ago
Vladimír Vondruš
428773fdcb
GL: minor cleanup in the tests.
7 years ago
Vladimír Vondruš
6ee6898c31
GL: properly execute these tests on WebGL 1 as well.
7 years ago
Vladimír Vondruš
2d5e2fda41
SceneGraph: properly prefix the assertion message.
7 years ago
Vladimír Vondruš
1bd3d270d8
Compile ResourceManager documentation snippets.
7 years ago
Vladimír Vondruš
2d04b22aba
Make it possible to pass Containers::Pointer to ResourceManager APIs.
...
Also cleaned up the test from naked new. This still needs to be reworked
to not do manual memory management inside (and then deprecate the raw
pointer versions), but for now this has to suffice.
7 years ago
Vladimír Vondruš
304cd6f036
DebugTools: greatly simplified ForceRenderer and ObjectRenderer impls.
...
This code was neglected for a while. No need to have naked new or
explicit handling of vertex/index buffers anymore.
7 years ago
Vladimír Vondruš
5cf147ec21
DebugTools: fix an assertion in ForceRenderer.
7 years ago
Vladimír Vondruš
44997465a7
DebugTools: test ForceRenderer and ObjectRenderer.
...
I spent some time trying ForceRenderer3D to produce the same image as
ForceRenderer2D but it *does not want* to show the arrowhead to me, so I
gave up.
7 years ago
Vladimír Vondruš
537177ca26
DebugTools: added screenshot().
7 years ago
Vladimír Vondruš
d4b3e950d3
DebugTools: minor cleanup.
7 years ago
Vladimír Vondruš
db44b570f7
DebugTools: make CommpareImage usable with CORRADE_COMPARE_AS().
7 years ago
Vladimír Vondruš
49d70377af
Test: fixed various unused function warnings.
7 years ago
Vladimír Vondruš
d9e7b3c384
GL: added *Framebuffer::implementationColorRead{Format,Type}().
...
Long overdue. Also wow, the drivers ARE SHIT.
7 years ago
Vladimír Vondruš
2b08995c24
Math: after the pack() fix, some Android issues are no more. Yay!
7 years ago
Vladimír Vondruš
38573c7a82
Math: we're not signing here, no.
7 years ago
Vladimír Vondruš
e62ce4faa6
Math: fix pack() to correctly select the nearest integral value.
...
Together with an assorted set of off-by-one changes to tests involving
packing, in addition to the changes done in the previous test cleanup
commit. Now Color3 sRGB conversion rountrips correctly.
7 years ago
Vladimír Vondruš
a87c7805f4
Math: rework sRGB, XYZ and packing tests with emphasis on rountripping.
...
Makes them quite simpler. Doesn't pass for the sRGB roundtrip. Who would
have thought.
7 years ago
Vladimír Vondruš
d7d65db884
Platform: hint SDL what GLES library we want to use.
7 years ago
Vladimír Vondruš
e6db895452
Adapted to Corrade changes.
7 years ago
Vladimír Vondruš
3281a277cc
Vk: provide conversion of basic math-related types.
7 years ago
Vladimír Vondruš
12c2cb640e
Vk: no, this is not GL!
7 years ago
Vladimír Vondruš
2c4103d426
GL: properly execute the test on ES3 builds.
7 years ago
Vladimír Vondruš
db8c5fedaa
GL: clean up Framebuffer constructors.
...
The AbstractFramebuffer constructor is now constexpr, but that doesn't
mean we can have GL::defaultFramebuffer constexpr -- all member
functions are (by design) non-const and we also need to modify its
viewport value quite often. So this has to stay as-is.
7 years ago
Vladimír Vondruš
a36d8eb033
Remove use of std::reference_wrapper where possible.
...
What's left is *a lot* of places taking monstrous
std::vector<std::reference_wrapper> and that can't be changed to
std::vector<Containers::Reference> in a source-compatible way. Even that
would be only a temporary change, since the goal is to fully avoid
dependency on STL in those cases.
The final version of these APIs should take
Containers::ArrayView<Containers::Reference> and be implicitly
convertible froom e.g. std::vector<Containers::Reference>. That's
definitely possible, but not in time for 2019.01, so instead of forcing
users to temporary pass a `{vec.begin(), vec.size()}` everywhere instead
of just `vec`, I'm rather keeping these APIs intact.
7 years ago
Vladimír Vondruš
3bb85ae1bb
Platform: don't use deprecated functionality.
7 years ago
Vladimír Vondruš
852aebe41b
Trade: this include is not needed either.
7 years ago
Vladimír Vondruš
697c17279c
Backwards compatibility for std::unique_ptr where needed.
7 years ago
Vladimír Vondruš
f9f3df69de
Get rid of std::unique_ptr.
7 years ago
Vladimír Vondruš
f7dcb62e93
MeshTools: return just a mesh from fullScreenTriangle().
...
Backwards-incompatible change, sorry.
7 years ago
Vladimír Vondruš
24b8ff086c
Removed std::optional backwards compatibility.
...
This was a dirty mess. Good riddance. Also removing the include from the
header now, as it has a forward declaration and thus is not needed.
7 years ago
Vladimír Vondruš
3bceb0b276
GL: clean up the includes.
...
No need to include all GL headers just for one thing.
7 years ago
Vladimír Vondruš
a18ec9b6d8
Doc++
7 years ago
Vladimír Vondruš
9c35b11521
Math: fix unused function warning on Emscripten.
7 years ago
Vladimír Vondruš
40cfe06044
Doc++, minor cleanup.
7 years ago
Vladimír Vondruš
20a55b16aa
Platform: implement Sdl2Application::anyEvent(), expose SDL_Event.
7 years ago
Vladimír Vondruš
d4c1785dc0
Platform: make ViewportEvent non-copyable, mark internals as const.
7 years ago