Vladimír Vondruš
7100e3b6d8
Revert "Platform: choose a GLXFBConfig with a pbuffer."
...
Caused an error when creating a WindowlessGlxApplication on a Mesa with
just llvmpipe. Note to self: never again try to fix anything related to
Xlib that's not broken.
This reverts commit 511d0c1b27 .
6 years ago
Vladimír Vondruš
e64e40da11
Platform: avoid using 100% CPU in an idle GlfwApplication.
6 years ago
Vladimír Vondruš
e7838a8b9e
Platform: check before calling SDL_DestroyWindow().
...
Can cause a crash when exiting from constructor on Windows (but not on
Linux). To be safe do the same for all others.
6 years ago
Vladimír Vondruš
b5dead9223
Platform: add no-forward-compatible-core-context workaround for EGL too.
6 years ago
Vladimír Vondruš
b81f78f990
Platform: I messed up.
6 years ago
Vladimír Vondruš
68c7a06ad3
Platform: add a TODO for this weird EGL app implementation.
6 years ago
aspioupiou
64d0702277
Platform: only initialize/terminate EGLDisplay once in a shared set.
...
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
6 years ago
Vladimír Vondruš
d366e0e7a0
GL: exposed clip / cull distance APIs.
6 years ago
Vladimír Vondruš
511d0c1b27
Platform: choose a GLXFBConfig with a pbuffer.
...
Looking at provided FBConfigs, first few of them are pbuffer-only so why
not just pick those already, we don't need to look for some config that
supports rendering to a window.
6 years ago
Vladimír Vondruš
68559411fc
Platform: drop the forward compatible flag for fallback GLX 2.1 context.
...
Same is already done in the GLFW and SDL2 app. Also updated the comments
to clarify why is it done (instead of an "I have no idea" TODO).
6 years ago
Vladimír Vondruš
7aaf646728
Platform: handle Xlib errors gracefully in WindowlessGlxApplication.
...
Another step on the path for supporting Mesa's Zink.
6 years ago
Vladimír Vondruš
acc3932e0c
Platform: added ScreenedApplication::globalBeforeDrawEvent().
6 years ago
Vladimír Vondruš
7a30390890
Platform: extend window flags in Sdl2 and GlfwApplication.
6 years ago
Vladimír Vondruš
65a2ced2a7
Make this compile and test cleanly with CORRADE_NO_ASSERT defined.
6 years ago
Vladimír Vondruš
d3f2235759
Adapted to Corrade changes.
6 years ago
Vladimír Vondruš
446b63f11c
doc: updated credits and changelog.
6 years ago
Squareys
d04a9c780c
Platform: Fix compilation of EmscriptenApplication on Emscripten 1.38.26+
...
Signed-off-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
e6dc5be1af
Platform: default to 32-bit RGBA framebuffer instead of 24-bit RGB.
...
macOS and Android is known to degrade 24-bit to 16-bit colors, this
prevents them from doing that.
6 years ago
Vladimír Vondruš
2149e78f82
Platform: make *Application::exit() exit right after constructor ends.
...
Instead of first entering the main loop, processing events etc. This
also makes it finally possible to exit the application cleanly, with all
non-global destructors executed as well.
6 years ago
Vladimír Vondruš
3de507594d
Platform: doc++
6 years ago
Vladimír Vondruš
492ba412f0
Platform: cleanup X11 stuff only if it's there.
...
Of course, widely expepted assumptions DO NOT work here. It doesn't
even report an error, it crashes straight away.
6 years ago
Vladimír Vondruš
b04aa48c03
Platform: do at least something in the test draw event.
...
To indicate the event handler was triggered.
6 years ago
Vladimír Vondruš
5c4a00512b
Platform: reorder test code for consistency.
6 years ago
Vladimír Vondruš
8af1f6a91e
Platform: delay GLFW event callback setup to first main loop iteration.
...
A more robust fix for the Windows-specific issue, and fixing a similar
macOS issue as well.
6 years ago
Vladimír Vondruš
ad9b9f5a3d
Platform: ensure Sdl2Application has a window opened in the main loop.
...
Same is done in GlfwApplication, and not doing so makes no sense.
6 years ago
Vladimír Vondruš
ce0efd1aeb
Platform: move a window creation asset to a better place in GlfwApp.
...
So this gets checked even when the user is calling mainLoopIteration()
directly.
6 years ago
Vladimír Vondruš
c98635842f
Platform: allow engine-specific options in GlfwApplicationTest.
6 years ago
Vladimír Vondruš
2c10e09148
Platform: add context getters to all windowless apps.
...
For context sharing. The windowed apps already have these.
6 years ago
Stéphane Brard
4d1203d66e
Platform: added shared context support to windowless applications.
6 years ago
Vladimír Vondruš
8d4fa320a6
Platform: fix a comment.
6 years ago
Vladimír Vondruš
081dd8981f
Doxygen, FFS.
6 years ago
Konstantinos Chatzilygeroudis
1c3e386e35
Undef xlib nonsense to avoid conflicts
6 years ago
Vladimír Vondruš
dd07145fa2
GL: add a GL::AbstractShaderProgram::maxGeometryOutputVertices() query.
6 years ago
Vladimír Vondruš
c17f5a0340
Platform: avoid GlfwApplication::viewportEvent() being fired too soon.
...
Fixed sad an nasty crashes with GLFW-based apps on Windows.
6 years ago
Vladimír Vondruš
241cde706f
GL: new Mesh::maxVertexAttributeStride() query.
...
Good thing I checked this -- based on WebGL I was under assumption that
all GPUs have it just 256, but that was really just WebGL limitation.
Also ugh why this query wasn't there since the 90's?
6 years ago
Vladimír Vondruš
65743b5647
Platform: make it possible to override DPI scaling from the app.
...
This was sadly broken since probably ever. Since it was hard to wrap my
head around this, added also some code to test this.
6 years ago
Vladimír Vondruš
c3878c9bf1
Platform: implement physical DPI scaling in Sdl2App on Windows.
...
Yes, because it's exactly the other way for SDL. You know, consistency
and all. FFS.
6 years ago
Vladimír Vondruš
444b925b2a
Platform: implement virtual DPI scaling in GlfwApp on Windows.
...
Until now, both physical and virtual returned the physical DPI scaling.
6 years ago
Vladimír Vondruš
cc401b2b3c
GL: implemented missing Renderer::setPatch*() for tessellation shaders.
...
The last bits!
6 years ago
Vladimír Vondruš
5cbd6bdf85
Platform: use an Optional for lazy-loaded event properties in Sdl2App.
...
It was done like this in GlfwApp and elsewhere, this is probably a
remmant from earlier pre-Optional times.
6 years ago
Vladimír Vondruš
f7e41d6e96
Platform: add search aliases to have things discoverable betters.
6 years ago
Vladimír Vondruš
750544e2c2
Platform: update copyright in headers.
6 years ago
Vladimír Vondruš
88b515ba15
Platform: assume HiDPI is on by default on macOS 10.13+ and iOS 13+.
...
Also fix the detection in case the app explicitly sets the property to
false -- previously it thought the app is HiDPI-aware as well, which was
wrong.
6 years ago
Vladimír Vondruš
de49453199
Platform: make a macOS bundle also for GlfwApplication test.
6 years ago
Vladimír Vondruš
8d9514148c
Platform: no need, GlfwApplication isn't ported to Emscripten anyway.
6 years ago
Vladimír Vondruš
7d37647897
Platform: print the "HiDPI not enabled" warning at most once on macOS.
...
If the application is constructed with delayed window creation, the
warning would be printed on each context creation attempt / call to
dpiScaling(const Configuration&), which is silly.
6 years ago
Vladimír Vondruš
bbc6102320
Platform: hide internal {Glfw,Sdl2}Application flags from the header.
...
Because things are going to get messy soon (well, in case of SDL2 they
already are).
6 years ago
Vladimír Vondruš
31a7c4f66e
Platform: check for presence of GLFW cursor defines instead of a version.
...
Makes this work on older Git clones which have version set as 3.4 but
don't contain those defines yet.
6 years ago
Vladimír Vondruš
c94c462187
Doc++, updated changelog.
6 years ago
Marco Melorio
1b1c12a56f
GlfwApplication: added new GLFW 3.4 resizing cursors.
6 years ago