Vladimír Vondruš
fdcfa419de
Platform: fix compilation on Emscripten.
7 years ago
Vladimír Vondruš
a1bca4d8f4
Platform: minor cleanup, doc++, make cursor LUTs file-local.
7 years ago
Marco Melorio
40bfa7ae91
Plaftorm: Add cursor management support
7 years ago
Vladimír Vondruš
303468f299
Doc++
7 years ago
Vladimír Vondruš
35bf229ed5
Platform: add Sdl2Application::Configuration::WindowFlag::{OpenGL,Vulkan}.
7 years ago
Vladimír Vondruš
82f53862e1
Platform: Sdl2Application::mainLoopIteration() now returns a bool.
...
To indicate when the app desires to exit.
7 years ago
Vladimír Vondruš
64ad4a566a
Platform: fix Sdl2Application on Emscripten with TARGET_GL disabled.
...
An old TODO.
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š
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š
37996e12b7
doc: improve docs about external CMake modules.
...
Hopefully this stops more people from running into issues with those.
7 years ago
Vladimír Vondruš
544f30b52f
Platform: make Application and other conditional aliases searchable.
7 years ago
Vladimír Vondruš
38ef891682
Doc++
7 years ago
Vladimír Vondruš
df6582d948
Platform: ask for debug context if --magnum-gpu-validation is enabled.
...
Also mention the option more prominently in related docs.
7 years ago
Vladimír Vondruš
a14be9b154
Adapt to (breaking) Corrade changes.
7 years ago
Squareys
6e5f6b8858
Platform: light-weight main loop for EmscriptenApplication
...
Signed-off-by: Squareys <squareys@googlemail.com>
7 years ago
Vladimír Vondruš
ed564b525e
Platform: doc++
7 years ago
Vladimír Vondruš
1bd78f9bdf
Platform: move friends into privates.
7 years ago
Vladimír Vondruš
8254e16c91
Platform: rework DPI awareness and resize event in EmscriptenApp.
...
By mistake I thought it's the same as in Emscripten's SDL, but there
Emscripten does some emulation to ensure windowSize() ==
framebufferSize().
For the resize event it's possible to hook into the window resize
callback instead of polling for the size every frame, That's much more
efficient.
7 years ago
Vladimír Vondruš
fc4860e30a
Platform: give the docs the love they deserve.
7 years ago
Vladimír Vondruš
6521e1b9be
Platform: properly zero-initialize the exit code.
...
Accidentally overlooked in f4b6130ab0 .
7 years ago
Vladimír Vondruš
ba14afb6c8
Platform: doc++
7 years ago
Guillaume Jacquemin
b4dac78ef3
Platform: improve {Glfw,Sdl2}Application.
...
Two new methods, setMinWindowSize() and setMaxWindowSize(), were added.
They use the underlying library's API to achieve their purpose.
7 years ago
Vladimír Vondruš
8672dc7eab
Platform: cleanup trailing whitespace.
7 years ago
Guillaume Jacquemin
f4b6130ab0
Platform: improve {Glfw,Sdl2}Application::exit().
...
Now, it's possible to specify a custom exit code.
7 years ago
Vladimír Vondruš
3626562e1d
Adapted to Corrade changes.
...
Mostly missing includes now.
7 years ago
Vladimír Vondruš
930a323c05
GL: removed deprecated aliases to GL functionality in the root namespace.
...
Deprecated for 2018.04, it's been almost a year since. Whoever is using
Magnum regularly updated already, and who not can always upgrade
gradually (2018.02, 2018.04, 2018.10, 2019.01 etc.).
7 years ago
Vladimír Vondruš
2253987531
Platform: HiDPI support for SDL2 and GLFW on Windows.
...
Co-authored-by: Guillaume Jacquemin <williamjcm@users.noreply.github.com>
7 years ago
Guillaume Jacquemin
daf1deab3e
Sdl2Application: add glContext() accessor.
7 years ago
Vladimír Vondruš
053f406b7d
Platform: make SDL2 and GLFW apps buildable without TARGET_GL again.
...
I'm pretty sure this worked correctly in 2018.04.
7 years ago
Vladimír Vondruš
d7d65db884
Platform: hint SDL what GLES library we want to use.
7 years ago
Vladimír Vondruš
f9f3df69de
Get rid of std::unique_ptr.
7 years ago
Vladimír Vondruš
40cfe06044
Doc++, minor cleanup.
7 years ago
Vladimír Vondruš
20a55b16aa
Platform: implement Sdl2Application::anyEvent(), expose SDL_Event.
7 years ago
Vladimír Vondruš
d4c1785dc0
Platform: make ViewportEvent non-copyable, mark internals as const.
7 years ago
Vladimír Vondruš
b9342665b2
Platform: don't group special events together with screen events.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
6cc7d2e3a5
Doxygen: extract private virtuals.
7 years ago
Vladimír Vondruš
3ca13dbc1b
Platform: implement {Glfw,Sdl2}Application::exitEvent().
...
SDL has to be special and behave weirdly, of course, as always.
7 years ago
Vladimír Vondruš
8f55880b6b
Platform: remove deprecated wheel-reported-as-button events.
...
Deprecated in 2a77856df2 (June 2016). Use
the dedicated mouseScrollEvent() API instead.
8 years ago
Vladimír Vondruš
6bf91f4cdd
Platform: removed deprecated constructors taking nullptr.
...
Deprecated in windowless apps in
6feda42f13 (June 2016) and for windowed
apps in eeba2ac848 (March 2017). Use
constructors taking the NoCreate tag instead.
8 years ago
Vladimír Vondruš
80422e74e6
Moved credits into the documentation.
...
Nobody ever looked into the CREDITS.md file anyway and we want to be
clear about licenses to our commercial users.
8 years ago
Vladimír Vondruš
b73b9cb408
Platform: remove 50 000 lines from Sdl2Application header.
...
Of all the libraries I use, I expected SDL to do the "include the world"
horror the least of all. Ugh.
8 years ago
Vladimír Vondruš
9a11b7d23a
Platform: make all useful Application APIs public, not protected.
8 years ago
Vladimír Vondruš
a14975cc42
Platform: properly support the MAGNUM_DPI_SCALING environment variable.
8 years ago
Vladimír Vondruš
c579060922
Platform: ability to override GL forward compatibility in SDL and GLFW.
...
It's enabled by default, but it's possible to explicitly remove the flag
to allow for using features that are not enabled otherwise (such as wide
lines). To make the flag handling easier, there's now also new
addFlags() and clearFlags() methods.
8 years ago
Vladimír Vondruš
f60d2d0d6d
Platform: more consistent docs for features not available on WebGL.
8 years ago
Vladimír Vondruš
3828e6b9a3
Platform: don't disable compositing in Sdl2App.
...
Yay, it was fixed in the meantime!
8 years ago
Vladimír Vondruš
e1a156ea67
Platform: numpad key mapping for Sdl2Application.
8 years ago
Vladimír Vondruš
674a740da5
Renamed various sRGB-related GL APIs for consistency with naming in Math.
...
As usual, the old names are deprecated aliases to the new things.
8 years ago