Vladimír Vondruš
6da8da79a8
Platform: properly prefix private member variables.
10 years ago
Vladimír Vondruš
fcb7277524
Platform: added Sdl2Application::windowSize().
10 years ago
Vladimír Vondruš
8d3fb52a7f
Platform: split text input rect setup into separate function.
...
* It might change during the text editing process and thus we need to
reposition it.
* And it's also not possible to connect a parameter-less signal to it
on Clang, which is unfortunate.
10 years ago
Vladimír Vondruš
774481b682
Platform: MOAR keys in Sdl2Application.
...
And reordered GlfwApplication key enum to be consistent with the rest.
10 years ago
Vladimír Vondruš
d3b18e145b
Platform: oops, committed too fast.
10 years ago
Vladimír Vondruš
1398ffd24c
Platform: text input support for Sdl2Application.
10 years ago
Vladimír Vondruš
082e02a013
Platform: minor code reordering.
10 years ago
Vladimír Vondruš
0078f7a035
Platform: fix Sdl2Application build on Emscripten.
10 years ago
Vladimír Vondruš
0dbd8a2f8f
Platform: doc++.
...
Also fixed a minor typo in enum name.
10 years ago
Vladimír Vondruš
d2f8821ce7
Implemented KHR_no_error.
10 years ago
Vladimír Vondruš
44e1851809
Updated credits.
10 years ago
Vladimír Vondruš
5061d29926
Platform: don't set swap inteval implicitly in GlfwApplication.
10 years ago
Vladimír Vondruš
dc41cbbdb2
Platform: minor formatting updates.
10 years ago
Vladimír Vondruš
9a20dc2a70
Platform: backport GlfwApplication to GLFW 3.1.
...
So one can use it without compiling latest master.
10 years ago
Squareys
725e726c1e
Platform: Implement modifiers for GlfwApplication
...
Signed-off-by: Squareys <Squareys@googlemail.com>
10 years ago
Squareys
accf8380f0
Platform: Implement WheelUp/Down analog to Sdl2Application
...
... for better portability.
Signed-off-by: Squareys <squareys@googlemail.com>
10 years ago
Squareys
e451b6dfdb
Platform: Add GlfwApplication
...
Signed-off-by: Squareys <Squareys@googlemail.com>
10 years ago
Vladimír Vondruš
23074760f3
Platform: make magnum-info actually useful on iOS.
10 years ago
Vladimír Vondruš
7878d039ec
Platform: support iOS in magnum-info.
10 years ago
Vladimír Vondruš
6379f8a616
Platform: added WindowlessIosApplication.
10 years ago
Vladimír Vondruš
a02135b699
Platform: ability to query raw extension string list in magnum-info.
10 years ago
Vladimír Vondruš
01e0292361
Extracted CubeMapTexture::Coordinate enum into CubeMapCoordinate.
...
Allows to break the dependency on the <Magnum/CubeMapTexture.h> header
in Framebuffer, TextureState and elsewhere. The old
CubeMapTexture::Coordinate enum is now just an alias, is marked as
deprecated and will be removed in a future release.
10 years ago
Vladimír Vondruš
a5941ac3ea
No need to set CMAKE_MODULE_PATH explicitly when crosscompiling anymore.
10 years ago
Vladimír Vondruš
9f9a8baf10
Platform: apparently there was't a single change that worked right away.
...
Ugh.
10 years ago
Vladimír Vondruš
082ca911ab
Platform: fix building of EglContext with Xcode.
...
The dreaded OBJECT libraries again. Reported the inconvenience here:
http://public.kitware.com/pipermail/cmake/2016-April/063178.html
10 years ago
Vladimír Vondruš
4f94c26467
Added TARGET_HEADLESS option.
...
Toggles between using CGL/GLX/WGL (requiring running graphical desktop
environment) or EGL (without display attachment) for command-line
utilities and GL tests. Also exposed to the user through
MAGNUM_TARGET_HEADLESS CMake and preprocessor variables.
10 years ago
Vladimír Vondruš
9a70d06767
Platform: new WindowlessEglApplication.
...
Uses just EGL and no other platform toolkit, meaning that the same code
can be used on all platforms if the drivers support it. Should be
working for OpenGL ES for most drivers, however desktop OpenGL is
supported only on NVidia since version 355.
10 years ago
Vladimír Vondruš
ecebf0fd02
Platform: added new flags to magnum-info.
10 years ago
Vladimír Vondruš
01ffbe93a9
Modern CMake usage: reworked to use target-specific properties.
...
As with Corrade, this is not exactly backwards compatible, but for
common use case without OBJECT libraries this should not be a problem.
In any case, recreate the build dir and update your copy of all
Find*.cmake modules to avoid weird things happening.
User-facing changes:
* Documentation of all Find*.cmake modules converted to
reStructuredText to follow official CMake guidelines.
* The newfangled way to use the libraries is to link to Magnum::Shaders
instead of adding ${MAGNUM_SHADERS_INCLUDE_DIRS} to include path and
linking to ${MAGNUM_SHADERS_LIBRARIES}.
* The old ${MAGNUM_*_LIBRARIES} are deprecated and now just expand to
Magnum::* target. Use the target directly. These are also enabled
only when building with MAGNUM_BUILD_DEPRECATED.
* The old ${MAGNUM_*_INCLUDE_DIRS} are removed as the Magnum::* targets
cover these too.
Internal changes:
* Global state such as include_directories() was replaced with
target-specific settings.
10 years ago
Nicholas "LB" Braden
f9ead4ef83
Fix 'zero as null pointer constant' warning
...
Scanning dependencies of target MagnumWindowlessWglApplication
[ 30%] Building CXX object src/Magnum/Platform/CMakeFiles/MagnumWindowlessWglApplication.dir/WindowlessWglApplication.cpp.obj
C:\Users\LB\Code\Magnum\build\Magnum-prefix\src\Magnum\src\Magnum\Platform\WindowlessWglApplication.cpp: In member function 'bool Magnum::Platform::WindowlessWglApplication::tryCreateContext(const Magnum::Platform::WindowlessWglApplication::Configuration&)':
C:\Users\LB\Code\Magnum\build\Magnum-prefix\src\Magnum\src\Magnum\Platform\WindowlessWglApplication.cpp:124:81: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
_renderingContext = wglCreateContextAttribsARB(_deviceContext, 0, attributes);
^
[ 30%] Linking CXX static library libMagnumWindowlessWglApplication.a
[ 30%] Built target MagnumWindowlessWglApplication
10 years ago
dlardi
5975945d29
WGL context library build fixed
10 years ago
Vladimír Vondruš
7949c376c5
Platform: link also all static libraries to Magnum.
...
So we inherit all include directories, options and everything.
10 years ago
Vladimír Vondruš
8469beec3b
Platform: destroy SDL2 window also if Magnum context creation fails.
...
Not sure why I omitted that.
10 years ago
Vladimír Vondruš
29081acc94
Platform: avoid window blinking with multiple context creation attempts.
...
The window is only shown once we are sure that everything went smoothly.
10 years ago
Vladimír Vondruš
4bcb79c315
Platform: properly handle SDL2 context creation failure on Emscripten.
10 years ago
Vladimír Vondruš
fedf84a871
Platform: remove unneeded flag fiddling in Sdl2Application.
...
The SDL2 documentation explicitly says the following:
SDL_WINDOW_SHOWN is ignored by SDL_CreateWindow(). The SDL_Window is
implicitly shown if SDL_WINDOW_HIDDEN is not set.
10 years ago
Vladimír Vondruš
25a2796833
Fix Doxygen warnings.
10 years ago
Vladimír Vondruš
08c8f5a635
Advertise iOS support, document building and usage.
10 years ago
Vladimír Vondruš
02b2ce109f
Platform: doc++
10 years ago
Vladimír Vondruš
a771b60af6
Platform: use zero window size on iOS and let SDL2 autodetect.
...
Hopefully this feature won't go away in some future version.
10 years ago
Vladimír Vondruš
e70cb8bfdc
Platform: no point in having SDL2 window title on iOS.
10 years ago
Vladimír Vondruš
18bb3fccfc
Platform: fix iOS display orientation events in Sdl2Application.
10 years ago
Vladimír Vondruš
19590df462
Platform: added iOS HiDPI and menu bar toggles to Sdl2Application.
...
Except for the documentation the project is now ready for iOS!
10 years ago
Vladimír Vondruš
2a62e6772e
Platform: fix viewport initialization on iOS.
10 years ago
Vladimír Vondruš
f52e156e90
Platform: print Buffer::minMapAlignment() in magnum-info.
10 years ago
Vladimír Vondruš
23646e6690
Hell, this project is big.
10 years ago
Vladimír Vondruš
b5ced6ee13
Platform: note that WindowlessCglApplication is w/o default FB.
10 years ago
Vladimír Vondruš
76f73f4a61
Platform: add missing definitions to magnum-info.
10 years ago
Vladimír Vondruš
aebf071143
Platform: make used application printing in magnum-info more foolproof.
...
I don't want to have the same logic duplicated on two places. Also
filled in missing values.
10 years ago
Vladimír Vondruš
b35d19ce6b
Platform: comment cleanup.
...
What does "window context" mean anyway?
10 years ago