Vladimír Vondruš
02efcf43a4
Platform: display whether this is GL core profile in magnum-info.
9 years ago
Vladimír Vondruš
0d94673afb
Platform: make it possible to run main loop iterations manually.
9 years ago
Vladimír Vondruš
dcd2249039
Platform: no need to have things at such level of ugliness.
9 years ago
Émile Grégoire
931c16376b
Fixes to CMake folder support.
9 years ago
Vladimír Vondruš
12fa6961c8
Use CMake folders also for OBJECT libraries, executables and tests.
9 years ago
Vladimír Vondruš
f9bca9e2a7
Platform: no need to define UNICODE.
...
That's defined globally now.
9 years ago
Vladimír Vondruš
a83be88b88
Platform: put code comment on a correct place.
9 years ago
Émile Grégoire
dae1e8e9cf
Started adding folders for Visual Studio.
...
See https://gitter.im/mosra/magnum/archives/2017/03/25
9 years ago
Vladimír Vondruš
3541e9f1fa
Platform: proper include for WinRT SDL_WinRTRunApp().
9 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
2b34c269db
Doxygen warning fixes.
9 years ago
Vladimír Vondruš
eeba2ac848
Platform: proper NoCreate constructors for windowed classes.
...
The move away from `nullptr` to NoCreate for constructing an application
without creating OpenGL context was done quite some time ago for
windowless application, but for some weird reason it was never done for
windowed apps. Now made this consistent.
The old `nullptr`-based constructor is still present, but marked as
deprecated and due to be removed in some future release.
9 years ago
Vladimír Vondruš
b14927aa61
Platform: added {Sdl2,Glfw}Application::window().
9 years ago
Vladimír Vondruš
4955e1e320
Platform: text input in GlfwApplication.
...
Mirrors a subset of the text input API from Sdl2Application, requires
latest Corrade for the Unicode::utf8() function.
9 years ago
Vladimír Vondruš
11d664efef
Platform: provide position in GlfwApplication::MouseEvent.
...
Kinda useless without it, I would say.
9 years ago
Vladimír Vondruš
9aa4e69db0
Platform: added GlfwApplication::windowSize().
9 years ago
Vladimír Vondruš
455dc26840
Platform: properly set minimized and cursor window options for GLFW.
...
Didn't work and caused the following error messages to be printed to the
output:
Invalid window hint 131074
Invalid window hint 208897
9 years ago
Vladimír Vondruš
57b36240c2
Platform: doc++
9 years ago
Vladimír Vondruš
3a16ae6f46
Platform: use Flag::TextInputActive instead of a boolean in Sdl2Application.
9 years ago
Vladimír Vondruš
f64ebc6219
Platform: use Flag::Redraw instead of a boolean in GlfwApplication.
...
Also properly reset it before drawEvent() so the users can control the
amount of redrawing themselves.
9 years ago
Vladimír Vondruš
a7c7323673
Platform: make WindowFlag::Resizable consistent between GLFW and SDL2 app.
...
It was Resizeable on GLFW and Resizable on SDL2. As both APIs use
"resizable" as the flag name, I'm keeping it. The old enum value is now
an alias to the new one, is marked as deprecated and will be removed in
a future release.
9 years ago
Vladimír Vondruš
fa0395bb9e
Platform: improve docs of MAGNUM_*APPLICATION_MAIN() for consistency.
9 years ago
Vladimír Vondruš
bd8d807e1c
Make Linux/Windows code for windowless apps on ES more consistent.
10 years ago
Vladimír Vondruš
9fcfd5ee25
Platform: fix compilation of WindowlessWindowsEglApplication.
10 years ago
Vladimír Vondruš
261c573557
Platform: build Android glue C source separately.
...
So I don't include the pedantic flags for it and don't treat it as C++
source.
10 years ago
Vladimír Vondruš
9a7d3a1bec
Added TransformFeedback::maxVertexStreams() limit query.
10 years ago
Vladimír Vondruš
7bd41d2b93
Implemented support for desktop GLES on Windows.
...
Because the library still links to the old crappy opengl32.dll, we need
to load all symbols above OpenGL 1.1, not just those that are above
OpenGL ES 2.0/3.0.
10 years ago
Vladimír Vondruš
d44d50293f
Platform: added missing define for desktop GLES on Windows.
10 years ago
Vladimír Vondruš
53036b2c2c
Platform: magnum-info is console app, so it's not Retina capable.
10 years ago
Vladimír Vondruš
967448069c
Forgotten include guards.
...
Thanks again, KDevelop 5!
10 years ago
Vladimír Vondruš
f3f4f1c779
Platform: include version-specific APIs in Doxygen, too.
10 years ago
Vladimír Vondruš
6a8c121c81
Platform: glfwGetKeyName() is since 3.2.
10 years ago
Vladimír Vondruš
bd24edd2ad
Platform: doc cleanup.
10 years ago
Vladimír Vondruš
8e632130b8
Platform: added *Application::KeyEvent::keyName().
...
The SDL2 variant works better than expected, however the GLFW variant
underdelivers -- no key names for modifier keys, the accent keys are not
UTF-8... I don't care ATM, will solve it once someone actually
complains.
10 years ago
Vladimír Vondruš
7c631d714a
Platform: expose key repeat in *Application::KeyEvent::isRepeated().
10 years ago
Elliot Saba
c5e22ae560
Platform: send GLFW_REPEAT events through `keyPressEvent()`
10 years ago
Vladimír Vondruš
00891e941d
Ability to pass const char** arguments to Platform::Context.
10 years ago
Vladimír Vondruš
176a72653e
Platform: update WindowlessWindowsEglContext to match the WglContext.
...
Applied 78ddfad543 on this class. Also
fixed suspicious window creation -- the private member variable was
never initialized.
10 years ago
Vladimír Vondruš
fbb363e9d0
Platform: work around horrible wglMakeCurrent() API design.
...
It fails when a null HDC parameter is passed to it. WHAT THE HELL.
10 years ago
mdietsch
78ddfad543
Platform: avoid registering WNDCLASS more than once.
...
Fixes an issue when creating the context more than once in a single
application. Also changed the API calls to be explicitly "W" and added
proper error reporting to this part of code.
10 years ago
Vladimír Vondruš
946aab3e87
Platform: properly restore previous GL context in WindowlessWglApp.
...
Now it is actually possible to create another context and not break the
current GL state on Windows.
10 years ago
Vladimír Vondruš
1e5e4843a9
Platform: expose also modifier keys in KeyEvent::Key enum.
...
Was done for GLFW but not for SDL2. Also updated the docs to reflect the
connection between them.
10 years ago
Vladimír Vondruš
9b744250cf
Don't use deprecated Corrade functionality.
10 years ago
Vladimír Vondruš
35c3f7d05d
Platform: link magnum-info to WindowlessEglApplication in EGL Linux builds.
10 years ago
Vladimír Vondruš
0c52d79707
Platform: oops.
10 years ago
Elliot Saba
e40533b841
Platform: Add Sdl2Application::InputEvent::Modifier::Super.
...
Maps to the Windows/⌘ key.
10 years ago
Vladimír Vondruš
140f378739
Platform: rename GlfwApplication::InputEvent::Modifier::AltGr to Super.
...
It's not AltGr, it's the Windows (or ⌘) key.
10 years ago
Elliot Saba
7fd78b28fb
Change GLFW keymappings to use actual GLFW defines
...
Note that the `Plus` and `Percent` keys are not available without using
the SHIFT key on the typical US English keyboard layout, and as such do
not have dedicated `#define`'s in `GLFW.h`.
10 years ago
Vladimír Vondruš
798ec9af9b
Platform: use BUILD_STATIC_PIC for windowless application libraries.
...
Makes sense now that they provide WindowlessGLContext which can be used
from shared libraries.
10 years ago
Vladimír Vondruš
8b044064b9
Use WindowlessEglApplication for windowless apps on non-desktop GLES.
...
It "just works", yay!
10 years ago