Vladimír Vondruš
c591f0b0c8
doc: assorted improvements, clarification and troubleshooting update.
7 years ago
Vladimír Vondruš
539f3f6066
GL: we can use PVRTC to test this code path on desktop.
7 years ago
Vladimír Vondruš
b0531c4cc1
WavAudioImporter: MSVC WHAT THE HELL.
...
On this day, MSVC linker started complaining about missing symbols like
WavImporter::doOpenData() in the WavHeaderTest. Mind you, there's
NOTHING the WavHeader.h would use from there. Neither the test. The only
thing that connects those two together is that WavHeader.h includes
WavImporter.h (probably just a leftover from the time where those two
actually depended on each other). My suspicion is that this got
triggered due to recent changes in AbstractPlugin (it's movable now) and
MSVC attempts to instantiate the destructor or whatnot, needing
references to the privately defined virtual functions. Or something. All
that while nothing from there is EVER used.
Removing the header dependency, hopefully this fixes it. Ugh.
7 years ago
Vladimír Vondruš
2a3d02d217
Math: an attempt to fix scatter() on GCC 4.8.
7 years ago
Vladimír Vondruš
bca7ed856d
OH GOD compilers I'm sorry.
...
I wonder how GCC 9 was able to survive this.
7 years ago
Vladimír Vondruš
057007facb
Make ImageViews of lower dimensions convertible to higher dimensions.
...
Otherwise using GL::TextureArray is quite annoying.
7 years ago
Vladimír Vondruš
7a1162acc7
Math: one more needless operator[] call in scatter().
7 years ago
Vladimír Vondruš
17b3c8fac5
Math: support numeric indexing in gather() / scatter() as well.
7 years ago
Vladimír Vondruš
f2f1cac598
Math: directly access Vector components in gather() / scatter().
...
Speeding up debug builds a bit.
7 years ago
Vladimír Vondruš
acc8d8994b
Math: added scatter(), renamed swizzle() to gather().
...
The swizzle() function is still present, only marked as deprecated and
scheduled to be removed in some future release.
7 years ago
Vladimír Vondruš
64ad4a566a
Platform: fix Sdl2Application on Emscripten with TARGET_GL disabled.
...
An old TODO.
7 years ago
Vladimír Vondruš
39e21b70d2
Doc++
...
Huh, what interesting things lie in old stashes.
7 years ago
Vladimír Vondruš
a035220552
Trade: this was not needed.
...
And made some valid asserts too silent to be heard.
7 years ago
Vladimír Vondruš
71a9f1bbbf
Reserve zero [Compressed]PixelFormat for an invalid value.
...
Catches accidents better -- just look at the diff. Might catch accidents
in your code now as well, so beware!
7 years ago
Vladimír Vondruš
8da9ce829c
modules: propagate dependencies of aliases in FindMagnum.cmake better.
7 years ago
Vladimír Vondruš
0408671e8f
Math: silence an annoying warning from MSVC about 64-to-32bit conversion.
7 years ago
Vladimír Vondruš
bc88faa215
Math: no Vector::operator-() and Vector2::perpendicular() on unsigned.
...
Reported by MSVC on Magnum Python Bindings.
7 years ago
Vladimír Vondruš
0172c41acb
Doc++
7 years ago
Vladimír Vondruš
e52c9e8d9e
Export globals and make them weak on static builds so they work across SOs.
...
Well, except on Windows -- not yet. Added an XFAIL for that.
7 years ago
Vladimír Vondruš
de0c370b5c
MagnumFont{,Converter}: properly link to all dependencies.
...
Otherwise they fail to build as dynamic with static Magnum libs.
7 years ago
Vladimír Vondruš
7853009aa1
Audio: make the global context variable file-local.
...
Like everywhere else.
7 years ago
Vladimír Vondruš
59aade762a
Audio, GL: add tests for global state shared across libraries.
...
Both currently fail on static builds.
7 years ago
Vladimír Vondruš
76a73bb38d
Platform: properly link to GLX also if Sdl2/GlfwApplication is disabled.
7 years ago
Vladimír Vondruš
31d6ba11a2
package/ci: have an explicit static build on Linux, macOS and Windows.
7 years ago
Vladimír Vondruš
51fedbc967
doc/snippets: adapt to Corrade header cleanup.
7 years ago
Vladimír Vondruš
7b43ab5fc2
GL: create the buffer passed to setBuffer() if it's not already.
7 years ago
Vladimír Vondruš
692cb4e173
GL: test setting an empty buffer to BufferTexture and filling it after.
...
The driver should recalculate the texture size after. This test fails when
ARB_DSA is not present as the underlying GL buffer is not created yet at
that point.
7 years ago
Vladimír Vondruš
dbc029e18e
GL: added BufferTexture::size().
...
Why the heck was it not here? Did I fear GL errors too much?
7 years ago
Vladimír Vondruš
40b8815b9d
Added sRGB formats to PixelFormats + R and RG sRGB GL texture formats.
...
The extension support is a mess, as usual. This time the ES flavor
supports something that desktop doesn't and WebGL lack those altogether.
Yay.
7 years ago
Vladimír Vondruš
be65f85e88
GL: recognize KHR_texture_compression_astc_sliced_3d.
7 years ago
Vladimír Vondruš
87a446c7ba
GL: recognizing {EXT,ANGLE}_texture_compression_dxt{1,3,5} extensions.
...
This makes it possible to test S3TC code paths on SwiftShader as well.
7 years ago
Vladimír Vondruš
907c91ac7b
GL: minor cleanup.
7 years ago
Vladimír Vondruš
b0546c4eda
Audio: improve extension tests similarly to GL.
7 years ago
Vladimír Vondruš
6e97039b8d
GL: don't include MAGNUM_shader_vertex_id on ES2 builds.
...
It makes one think such feature *could* be supported there, while it
couldn't.
7 years ago
Vladimír Vondruš
24a6c35017
GL: properly mark extension core versions.
7 years ago
Vladimír Vondruš
742aec665d
GL: harden extension list tests.
...
This uncovers a few important issues, yay!
7 years ago
Vladimír Vondruš
435f7a9f14
GL: remove redundant defines to slim the GL headers a bit.
...
What the hell, why does the ASTC HDR extension add *the exact same*
defines as the LDR one.
7 years ago
Vladimír Vondruš
9dfe6d1ab0
external: add helpers for updating flextgl-generated headers.
7 years ago
Vladimír Vondruš
65ea1eb91a
GL: properly use sRGB PixelFormat for sRGB ETC compressed formats.
7 years ago
Vladimír Vondruš
8e57060f39
Support for PVRTC compressed pixel format.
7 years ago
Vladimír Vondruš
2b9772d86a
Added generic ASTC formats and the corresponding WebGL extensions.
7 years ago
Vladimír Vondruš
7cb0c4d57d
Added BC4, BC5, BC6H and BC7 compression formats.
...
Those are now also available under WebGL 1/2 and OpenGL ES 3.O (strangely
not OpenGL ES 2.0) under EXT_texture_compression_{rgtc,bptc}. The GL names
are extra weird-ass now that all other APIs use the BC names.
7 years ago
Vladimír Vondruš
02538d566f
Added sRGB variants of BC1/BC2/BC3 compression formats.
7 years ago
Vladimír Vondruš
7993360a9e
Vk: update the header.
...
Ugh, what a mess. I need to mark the old things with a deprecation macro.
7 years ago
Vladimír Vondruš
1e761d5701
GL: minor cleanup.
7 years ago
Vladimír Vondruš
9aae386464
GL: add an important bit of tribal knowledge.
7 years ago
Vladimír Vondruš
619b4a3cb7
Be strict for missing values in pixel format switches.
7 years ago
Vladimír Vondruš
e1ab3ccf6e
GL: this extension was listed, but actually never in headers.
7 years ago
Vladimír Vondruš
5a2547dd40
GL: clarify use of sRGB formats on ES.
7 years ago
Vladimír Vondruš
15f9ec3adf
Added {EXT_texture_compression,WEBGL_compressed_texture}_s3tc_srgb extensions.
...
And silently the definitions from EXT_texture_sRGB (core since GL 2.1) as
that's where definitions for sRGB S3TC formats are hiding on desktop.
7 years ago