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
Vladimír Vondruš
631032749d
Platform: clarify a comment so I don't waste time here again.
6 years ago
Vladimír Vondruš
9d5064c857
Platform: fix Sdl2Application::setSwapInterval(0) + setMinLoopPeriod().
...
It thought VSync was enabled even when it was set to 0. Also clarified
the docs a bit.
6 years ago
Vladimír Vondruš
c1f43709fd
doc: sweeping update of CMake usage instructions.
...
Putting more emphasis into CMake subproject setup.
6 years ago
Vladimír Vondruš
d6718aaa1d
doc: use PRIVATE in target_link_libraries() CMake snippets.
...
The keyword-less version is discouraged for quite some time already.
6 years ago
Vladimír Vondruš
5a3288154b
Platform: properly include SDL_main.h for iOS.
...
Got missed when cleaning up the 50kLOC header mess in
b73b9cb408 (Nov 2018). Sorry!
6 years ago
Vladimír Vondruš
d64a67ab63
Platform: this error message was beyond useless.
6 years ago
Vladimír Vondruš
7ced4740fd
Silence a bunch of macOS-specific warnings.
6 years ago
Vladimír Vondruš
e603771cef
Platform: fix EmscriptenApplication mouse events with Emscripten master.
...
The canvasX/Y properties were silently deprecated (I wouldn't know
without looking at the source, the docs say no such thing) and when
-s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1 is enabled, these are
not initialized to any meaningful value.
6 years ago
Vladimír Vondruš
32eb99890e
Platform: silence clang-cl warnings from internal SDL headers.
6 years ago
Vladimír Vondruš
4e5ed76dce
Audio,Platform: put Emscripten boilerplate to correct location.
...
Got broken when introducing a global RUNTIME_OUTPUT_LOCATION.
6 years ago
Vladimír Vondruš
d33bbd1c7e
Platform: apparently I forgot to finish this sentence a year ago.
6 years ago
Vladimír Vondruš
e67526abf0
Platform: ability to set window size in Sdl2 and GlfwApplication.
...
It had the min/max size setters added in 2019.10 but this was missing.
6 years ago
Vladimír Vondruš
314cad0d89
Platform: document how to calculate content scaling in a x-platform way.
6 years ago
Vladimír Vondruš
5e9d1476ba
Platform: oh, right, Doxygen's "smart" quotes visited here.
7 years ago
Vladimír Vondruš
3379051ed5
Platform: added a bunch of missing keys.
7 years ago