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
Vladimír Vondruš
86c7486402
Platform: fix non-deprecated build.
...
Breakage introduced by the recent window icon addition.
7 years ago
Konstantinos Chatzilygeroudis
5e5c5f7945
GlfwApplication: fix for empty env XDG_SESSION_TYPE
7 years ago
Vladimír Vondruš
a920722839
doc: label deprecated APIs and stuff new since 2019.10 with version info.
...
Should make new things more discoverable, avoid confusion when a
documented API isn't there and reduce the need for maintaining multiple
separate versions of the docs.
7 years ago
Vladimír Vondruš
090c6bb4a7
Platform: window icon management in Glfw and Sdl2Application.
7 years ago
Vladimír Vondruš
4f6f8ecdde
Platform: um... why isn't SDL_version.h pulled in implicitly?
...
I'd assume that if I include any SDL header, the version macros get
included too.
7 years ago
Vladimír Vondruš
51e65aaae0
Platform: respect DPI in setMin/MaxWindowSize().
...
I hope this doesn't break someone's use case.
7 years ago
Vladimír Vondruš
322a57e88c
Platform: properly fire Sdl2Application::viewportEvent() in all cases.
...
The event wasn't fired when the window size got changed through an API
call. Unfortunately after this change the event gets fired any time
I call setMaxWindowSize(), not just when the size changes.
7 years ago
Vladimír Vondruš
3e4646f4be
Platform: add tests for setMin/MaxWindowSize().
...
DPI scaling is not respected and viewport event is not fired on SDL.
Ugh.
7 years ago
Vladimír Vondruš
98e64b5dee
Platform: make the GlfwApplication test app resizable.
7 years ago
Konstantinos Chatzilygeroudis
c8d2c33ac6
Fix for Glfw and Wayland crashing when showing the window after being hidden
7 years ago
Vladimír Vondruš
1a4179be70
Platform: minor.
7 years ago
Vladimír Vondruš
39ba1583e1
Platform: ability to specify exit code in AbstractXApplication.
...
For consistency with all others.
7 years ago
Konstantinos Chatzilygeroudis
270b755517
AbstractXApplication: remove button defines that interere with GlfwApplication.
7 years ago
Konstantinos Chatzilygeroudis
411e349358
GlfwApplication: Workaround for DPI scaling when monitor size is equal to zero
7 years ago
Konstantinos Chatzilygeroudis
756c1242ad
GlfwApplication: add mainLoopIteration similar to Sdl2Application
7 years ago
Konstantinos Chatzilygeroudis
432aca900d
AbstractXApplication: add mainLoopIteration similar to Sdl2Application
7 years ago
Vladimír Vondruš
01e12ba495
Platform: test Sdl2App/GlfwApp mouse locking.
7 years ago
Vladimír Vondruš
c4e3e3c045
Platform: deprecate Sdl2Application::setMouseLocked().
...
Now also handled by the new setCursor() APIs.
7 years ago
Vladimír Vondruš
8d9d247573
Platform: deprecate badly designed & useless GlfwApp setCursorMode().
...
I'm not sure who thought making this settable only during app startup
(and never after) is a good idea. Let's use the new setCursor() APIs
instead.
7 years ago
Vladimír Vondruš
c091ed0e66
Platform: implement cursor management for EmscriptenApplication as well.
...
36 cursor types, wow. Now I envy web devs.
7 years ago
Vladimír Vondruš
a23423457e
Platform: update Emscripten boilerplate copy to new binary locations.
7 years ago
Vladimír Vondruš
1f65f0a823
Platform: minor cleanup.
7 years ago
Vladimír Vondruš
7cb49fbb36
Platform: simple test for Sdl2 and GlfwApplication cursors.
7 years ago
Vladimír Vondruš
04827d3743
Platform: Emscripten support for cursors in Sdl2Application.
7 years ago
Vladimír Vondruš
fdcfa419de
Platform: fix compilation on Emscripten.
7 years ago