Vladimír Vondruš
eb7684da7e
Platform: reuse the dynamically loaded opengl32.dll.
...
Instead of using wglGetProcAddress directly and thus forcing a link-time
dependency on that DLL (and because this is a static lib also forcing all
users to link to it).
7 years ago
Vladimír Vondruš
9638e77996
Platform: we don't need to include windows.h here.
...
Did the same thing a while ago in Corrade/PluginManager/AbstractManager.h
so reusing it here.
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š
6a905089b9
Platform: avoid needless string allocations in workaround detection.
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š
d1d8db1f54
Platform: test also for EGL_EXT_device_base.
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š
305454453d
Platform: fix GLFW context creation on GL-less builds.
7 years ago
Vladimír Vondruš
a61e258d88
Platform: fix {Sdl2,Glfw}Application startup on GL-less builds.
7 years ago
Vladimír Vondruš
4a1f6737b6
package/ci: build GLFW and SDL2 apps in the Vulkan build.
7 years ago
Vladimír Vondruš
693fb55c10
Platform: fix GLFW/SDL2 tests on builds w/o GL.
7 years ago
Vladimír Vondruš
0a0a652388
Platform: this code doesn't need stuff from GL.
...
Fixes a build w/o GL enabled.
7 years ago
Vladimír Vondruš
8587afaca7
GL: improve Attribute docs with clear integer/double unavailablility errors.
7 years ago
Vladimír Vondruš
4bc84f6815
Math: expand UnderlyingTypeOf to support vectors and matrices.
...
This allows getting underlying type of those without needing to include
them. Yay.
7 years ago
Vladimír Vondruš
30b8257c5e
doc: updated credits and changelog.
7 years ago
Mandeep Singh Baines
acaf35ad69
GL: imageSize is not available for GLES < 3.1
...
Fixes the following compile error:
magnum/src/Magnum/GL/Texture.h:747:44: error: no member named 'imageSize' in 'Magnum::GL::AbstractTexture::DataHelper<2>'
return DataHelper<dimensions>::imageSize(*this, level);
^
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š
d5e4de772e
Shaders: doc++
7 years ago
Vladimír Vondruš
6ffda8f123
Shaders: fix MeshVisualizer wireframe rendering on WebGL 2.
...
It's not ideal yet (warnings about unused uniforms), but I won't handle
these until I have complete rendering tests.
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š
2d4df60257
Shaders: test for five lights works on ES2, too.
...
Ugh.
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š
9e03dd077a
GL: fix test asserts with the recently-deprecated nullptr ImageView.
7 years ago
Vladimír Vondruš
5be3f3ca7e
Platform: if you call Sdl2Application::tickEvent(), it gets disabled.
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š
d54e8c1844
Platform: minor cleanup.
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š
f22a626bc1
GL: these functions aren't available on ES.
...
Discovered when trying to call bindFragDataLocation() on ES.
7 years ago
Vladimír Vondruš
cd5f5e7ff9
Shaders: add ColorOutput constant to all shaders for consistency.
7 years ago
Vladimír Vondruš
b030fa9ad6
Shaders: huh, why this isn't done here?
7 years ago
Vladimír Vondruš
c78d6d9adc
Shaders: doc++
7 years ago
Vladimír Vondruš
1696ffb177
Shaders: destruct test scaffolding in reverse order.
7 years ago
Vladimír Vondruš
87ac8a8cd2
Shaders: support object ID output in Flat and Phong.
7 years ago
Vladimír Vondruš
fd67e42df1
Shaders: don't test for ES3 at runtime.
...
This only generates code that will be never executed. Tested with Flat
and Phong, the other shaders don't have rendering tests yet but since
the change is the same, I assume it will work there as well.
7 years ago
Vladimír Vondruš
b3a455fdaa
Shaders: adapt Flat / Phong to more test results.
7 years ago
Vladimír Vondruš
d932ca3d78
Shaders: whoops, a leftover after pruning depth test from the tests.
7 years ago
Vladimír Vondruš
e6ba699b6f
GL: make this doc section easier to find.
7 years ago
Vladimír Vondruš
c9d26a0628
doc: it doesn't make sense to use indexed outputs for this.
7 years ago
Vladimír Vondruš
2cfe5199b4
Shaders: make Phong uniform location calculations more parametrized.
7 years ago
Vladimír Vondruš
000833f86b
Shaders: these cheats for getting code coverage are not needed anymore.
...
The testing is *real* now.
7 years ago
Vladimír Vondruš
c60ef6039f
Shaders: test Phong normal texture multi-bind as well.
7 years ago
Vladimír Vondruš
fd6bf54769
Shaders: no, these are not expected to fail on macOS.
7 years ago
Vladimír Vondruš
6a5a5496f5
Shaders: properly test all constructor combinations of Flat.
7 years ago