Vladimír Vondruš
80f37d5262
Platforms: Pointer_stringify() is no more.
7 years ago
Vladimír Vondruš
25aa1b8c22
Text: expect opened font in all AbstractFont accessors.
...
Consistency is a king. This might be a perf penalty, but it prevents
accidents (and the user code can always cache the value), so it's
warranted.
7 years ago
Vladimír Vondruš
344e00ce11
Text: implement file callbacks for AbstractFont.
...
Basically mirroring the API of Trade::AbstractImporter, as that proved
to be useful. The old crazy openSingleData() and openData(horribleStuff)
are deprecated and will be removed in a future release.
No backwards compatibility is provided for font plugins, these need to
be adapted.
7 years ago
Vladimír Vondruš
88135b72bc
Text: doc++
7 years ago
Vladimír Vondruš
589a912fa1
Trade: accept const references in AbstractImporter file callbacks.
7 years ago
Vladimír Vondruš
e3fc0d037c
Move Trade::ImporterFileCallbackPolicy to InputFileCallbackPolicy.
...
It'll get used outside of the root namespace and since the callbacks tend
to be quite complex, it would be silly to require users to implement one
callback for Trade, one for Text and one for Audio, for example.
7 years ago
Vladimír Vondruš
9005b3c9aa
Platform: expose also window events via Sdl2Application::anyEvent().
7 years ago
Vladimír Vondruš
2bccfbf6a2
Updated credits and changelog.
7 years ago
Vladimír Vondruš
6d1de91667
doc: updated changelog.
7 years ago
Vladimír Vondruš
8e8010c40b
Document and print helpful error messages for GL-dependent features.
7 years ago
Vladimír Vondruš
1d5779b7a2
doc: build GL-dependent snippets only if GL is enabled.
7 years ago
Vladimír Vondruš
8b748ace7d
Text: properly report failures from AbstractFontConverter.
7 years ago
Vladimír Vondruš
834c5fe40d
Text: API-independent base for glyph caches.
...
Allows the Font and FontConverter plugins be built without TARGET_GL
enabled. That was the last piece missing for making the magnum-plugins
repo completely GL-free.
7 years ago
Vladimír Vondruš
215d50a087
Text: allow empty files in AbstractFont.
...
In particular, MagnumFont can be an empty.
7 years ago
Vladimír Vondruš
7ed35d3005
Updated changelog and credits.
7 years ago
Vladimír Vondruš
d2d7ee7d98
package/ci: run GLES tests on Linux with SwiftShader.
7 years ago
Vladimír Vondruš
8ba2cac0ee
DebugTools, MeshTools, TextureTools: handle broken gl_VertexID.
...
DebugTools::textureSubImage(), MeshTools::fullScreenTriangle() and
TextureTools::distanceField() all plagued by this on SwiftShader.
7 years ago
Vladimír Vondruš
28d89611f3
DebugTools: fix textureSubImage() for float textures on ES3.
...
By accident the returned image had zero size.
7 years ago
Vladimír Vondruš
796bdb6731
GL: new pseudo-extension MAGNUM_shader_vertex_id.
...
Will be used to distinguish if the driver supports gl_VertexID. This is
not the case on SwiftShader ES3 contexts (and could be elsewhere,
probably).
7 years ago
Vladimír Vondruš
74183eb8b9
GL: improve extension docs.
7 years ago
Vladimír Vondruš
3d08c641d8
GL: yet another workaround for SwiftShader, now with XFB buffer bindings.
7 years ago
Vladimír Vondruš
24210a00f9
GL: disable ANGLE_instanced_arrays and OES_texture_3D on ES2 SwiftShader.
...
Turns out the extensions are advertised but the ANGLE-suffixed and
OES-suffixed entrypoints are missing, leading to crashes.
7 years ago
Vladimír Vondruš
f5e9ba7e8a
GL: wait, there's not just three ES instanced extensions, there's FIVE.
...
Like, why can't they just depend on each other or something?
7 years ago
Vladimír Vondruš
44a77ed918
GL: fixed broken links to extensions.
...
These were originally working around some inconsistencies in the
upstream naming, but that's fixed since.
7 years ago
Vladimír Vondruš
b76d1226e0
GL: detect SwiftShader.
7 years ago
Vladimír Vondruš
d6e0186dbf
GL: actually fix the VAO / element array buffer binding state interaction.
...
Fixing the new (and now failing test) from the previous commit. In
setIndexBuffer(), I was resetting the state tracker to a VAO state that
was about to be set in the very next step, and then, when doing that
next step the state tracker "optimized away" the state change because it
thought it was already done (even though it wasn't). Reordering the two
operations fixes it.
In comparison to how this was meant to be done in the original
169031fb7b , the new way should do the same
but additionally avoid a bunch of redundant state calls. Let's hope no
more bugs related to this appear.
7 years ago
Vladimír Vondruš
de12c7ca78
doc: update changelog and credits.
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š
25ef63ecd7
TgaImporter: report error message on empty file being opened.
...
Also updated the test cases to be consistent with other image plugins.
7 years ago
Vladimír Vondruš
5a010269bd
Math: implement component-wise bool operations on BoolVector.
7 years ago
Vladimír Vondruš
d9682b49e7
doc: make the Plugins page easier to search for.
7 years ago
Vladimír Vondruš
d0673816ef
Animation: fix TrackView to have the same default extrapolation as Track.
7 years ago
Vladimír Vondruš
7048983a88
doc: mention all new packages also in the Getting Started guide.
7 years ago
Vladimír Vondruš
5cf84d6956
doc: mention MSYS2 Magnum Integration package.
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š
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š
537177ca26
DebugTools: added screenshot().
7 years ago
Vladimír Vondruš
db44b570f7
DebugTools: make CommpareImage usable with CORRADE_COMPARE_AS().
7 years ago
Vladimír Vondruš
1a946e5bc3
Updated toolchains submodule with an android_create_apk() fix.
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š
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š
d7d65db884
Platform: hint SDL what GLES library we want to use.
7 years ago
Vladimír Vondruš
b51b911a5b
doc: mention that ANGLE is bundled with browsers.
7 years ago
Vladimír Vondruš
47a81e74b8
doc: include handy links for Xcode (AppleClang) and MSVC version mapping.
7 years ago
Vladimír Vondruš
fadd4621d6
external: fix compilation of Vulkan headers on 32-bit Windows.
7 years ago
Vladimír Vondruš
fa8dae62b4
doc: ImGui is dear.
7 years ago
Vladimír Vondruš
4dbe17e9a9
doc: now we *can* link to std::optional on cppreference.
7 years ago
Vladimír Vondruš
e6db895452
Adapted to Corrade changes.
7 years ago
Vladimír Vondruš
87295278f4
doc: Hunter package is now ready!
7 years ago