Vladimír Vondruš
eef1981b43
GL: added hasTextureFormat() and textureFormat() helpers.
7 years ago
Vladimír Vondruš
893d5d38bc
ASTC: the pain never ends (3D formats).
...
GL has an extension, but only for ES, not on desktop. Vulkan has
nothing yet (due to there being just ARM that implements it, no other
vendor), except those being listed in a KTX format specification.
7 years ago
Vladimír Vondruš
75bfd41baf
Add a table describing block size of all known compressed pixel formats.
...
Needed for a bunch of features (and feature parity in
CompressedImageView).
7 years ago
Vladimír Vondruš
0a55171e94
doc: updated changelog.
7 years ago
Vladimír Vondruš
c6c8dcb456
GL: make DynamicAttribute constructible directly from an Attribute.
...
Otherwise trying to mirror all the properties is quite error-prone.
7 years ago
Vladimír Vondruš
06aac867ae
GL: make AbstractTexture destructor protected.
...
Right now there isn't any work done in subclass destructors, but that
may change in the future due to driver workarounds being added. So
better be prepared.
7 years ago
Vladimír Vondruš
b5371f7a6b
GL: TextureFormat::R3B3G2 had a typo in the name.
...
Use R3G3B2 instead. The íold name is preserved for compatibility, but
marked as deprecated and scheduled for removal in a future release.
7 years ago
Vladimír Vondruš
c591f0b0c8
doc: assorted improvements, clarification and troubleshooting update.
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š
17b3c8fac5
Math: support numeric indexing in gather() / scatter() as well.
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š
39e21b70d2
Doc++
...
Huh, what interesting things lie in old stashes.
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š
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š
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š
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š
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š
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š
9aae386464
GL: add an important bit of tribal knowledge.
7 years ago
Vladimír Vondruš
e1ab3ccf6e
GL: this extension was listed, but actually never in headers.
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
Vladimír Vondruš
7d9ceb8832
Added ETC2 and EAC compressed pixel formats to the generic enum.
7 years ago
Vladimír Vondruš
1724f94445
doc: expand the section about Vcpkg --head installs.
7 years ago
Vladimír Vondruš
acf06eb6d8
GL: don't implicitly enable debug output in OpenGLTester.
...
It's just too spammy and we have a nice opt-in way now, so direct users to
use that instead.
7 years ago
Vladimír Vondruš
4e218d3f24
Platform: new nv-egl-forward-compatible-context-unhappy workaround.
...
SIGH. WHY CAN'T WE HAVE NICE THINGS.
7 years ago
Vladimír Vondruš
53e86dd041
Platform: prefer EGL_EXT_device_enumeration to find an EGL display.
...
Makes things work on Mesa 19.2 when DISPLAY is not defined. And opens the
possibilities for *sane* GPU selection. No more environment variables,
globally exported symbols or other BAD SHIT.
7 years ago
Vladimír Vondruš
e02ca0f528
doc: wrap the workaround list.
7 years ago
Vladimír Vondruš
8587afaca7
GL: improve Attribute docs with clear integer/double unavailablility errors.
7 years ago
Vladimír Vondruš
30b8257c5e
doc: updated credits and changelog.
7 years ago
Vladimír Vondruš
e8a715f54d
doc: pretty pictures for the Shaders namespace overview.
7 years ago
Vladimír Vondruš
5617cb5199
Shaders: vertex color support in Phong and Flat.
7 years ago
Vladimír Vondruš
a3c8d8ec63
Shaders: allow Phong with zero lights.
...
Which makes it equivalent to Flat3D. Useful to reduce complexity in apps
that render models with pre-baked lighting.
7 years ago
Vladimír Vondruš
1887fe0ab9
Math: added a scalar equal() / notEqual() variant.
7 years ago
Vladimír Vondruš
0f7e1e8fad
Deprecate ResourceManager::instance().
...
If I would have done this a year ago, I could have it removed by now.
Well. Gotta look forward to 2020, then.
7 years ago
Vladimír Vondruš
110f8a37b9
doc: avoid horizontal scrollbars in Shaders code snippets.
7 years ago
Vladimír Vondruš
89d4a754d5
Platform: add MouseMoveEvent::relativePosition() to Glfw and Emscripten.
...
These toolkits don't support it, but I got really annoyed and so the
apps are emulating it.
7 years ago
Vladimír Vondruš
31f5ca4546
Platform: check and return a reference from Screen::application().
...
Giving out a pointer implied excessive error checking in user code.
There's a new hasApplication() accessor that can be used to check for
application presence, moreover the ScreenedApplication is now
convertible to a pointer to provide backward compatiblity. This
conversion is marked as deprecated and will be removed in a future
release.
7 years ago
Vladimír Vondruš
ad22f463fb
Platform: add {Sdl2,Glfw,Emscripten}Application::setWindowTitle().
...
On Emscripten as well, however I'm keeping the Configuration::setTitle()
a no-op because the title is usually set by the HTML markup already and
so dynamic code implicitly changing it to something else doesn't make
much sense.
7 years ago
Vladimír Vondruš
67bdc1bbd4
GL: make the ApiTrace viewport workaround no longer silent.
7 years ago
Vladimír Vondruš
87ac8a8cd2
Shaders: support object ID output in Flat and Phong.
7 years ago