Vladimír Vondruš
9505e0b3c1
Sdl2Application: added missing keys.
...
Now nearly full static compatibility with AbstractXApplication.
14 years ago
Vladimír Vondruš
4f9e13b2cb
Sdl2Application: implemented modifiers.
...
In SDL they are only for keyboard events and there is no support
for mouse modifiers like in X. Also reordered the enum in
AbstractXApplication to make it consistent.
14 years ago
Vladimír Vondruš
8789c31dec
Platform: macros for easier creation of application entry points.
14 years ago
Vladimír Vondruš
9cf48eee56
Platform: removed unneeded AbstractApplication base.
...
It's really not needed to have useless class defining only one function
(which wouldn't be used everywhere anyway).
14 years ago
Vladimír Vondruš
e1cd13021b
Platform/Application renaming.
...
Because with NaCl WindowContext doesn't make sense anymore, the classes
are now renamed:
* Contexts namespace -> Platform
* *WindowContext -> Application
Hopefully this is (one of) last crazy renaming runs.
14 years ago
Vladimír Vondruš
e9329745e8
Using `override` keyword in all places I can think of at this time.
14 years ago
Vladimír Vondruš
0646a6a12e
Contexts: updated default window names.
14 years ago
Vladimír Vondruš
141b20a612
Renamed Contexts::*Context to *ContextHandler.
...
Finally (and hopefully) consistent and non-confusing naming.
14 years ago
Vladimír Vondruš
4927be44cf
Context class must be instantiated after initializing extensions.
14 years ago
Vladimír Vondruš
a5ab6253b7
Contexts refactoring.
...
Contexts attached to window are now *WindowContext, pure contexts are
just *Context.
14 years ago
Vladimír Vondruš
fe62f547de
Reduced #includes in headers.
...
Magnum.h now doesn't include anything except OpenGL headers, thus
changes in Math library don't trigger recompilation of everything, but
only of things really depending on it.
Math constants moved to separate file for similar reasons, de-inlined
some functions to remove the need for some #includes.
14 years ago
Vladimír Vondruš
dd5635a3ab
AbstractXContext: added support for mouse motion event.
14 years ago
Vladimír Vondruš
f35a71a974
Doc++
14 years ago
Vladimír Vondruš
c83de594c2
AbstractXContext: ability to exit from main loop, added Esc key.
14 years ago
Vladimír Vondruš
1a6037ff5d
Adapted to Corrade changes, added operators for enum sets.
14 years ago
Vladimír Vondruš
8f3abe9dad
AbstractXContext: added modifiers to key and mouse events.
14 years ago
Vladimír Vondruš
b3a5e36c73
Doc++, code cleanup.
14 years ago
Vladimír Vondruš
0ca0f03f1c
Implemented AbstractXContext::redraw().
14 years ago
Vladimír Vondruš
e372a71636
Decoupled EGL interface from XEglContext.
...
New class EglInterface now handles only EGL, AbstractXContext is able to
take any OpenGL interface sublassed from AbstractGlInterface.
14 years ago
Vladimír Vondruš
0f579efe85
Undef some more Xlib nonsense.
14 years ago
Vladimír Vondruš
61cac0f1b3
Renamed EglContext to XEglContext.
...
X11 window and event handling will be used also elsewhere for desktop
OpenGL, reflect its presence in the class name.
14 years ago
Vladimír Vondruš
d03fe4d41d
Limited static polymorphism of EglContext and GlutContext.
...
If being careful, it's now possible to swap GlutContext with EglContext.
GlutContext doesn't have keyReleaseEvent() and many keys, but EglContext
doesn't have e.g. mouseMotionEvent().
14 years ago
Vladimír Vondruš
c74551e5c7
Doc++
14 years ago
Vladimír Vondruš
63f5637c1b
EglContext: MOAR keys!
14 years ago
Vladimír Vondruš
7669271b56
EglContext: forgot to revert this back.
14 years ago
Vladimír Vondruš
9ea8efe73b
EglContext: Handle window closing.
...
This is the most fucked up way to so fucking simple thing.
14 years ago
Vladimír Vondruš
ceb116c41c
EglContext: keyboard and mouse handling.
14 years ago
Vladimír Vondruš
59ca55abe0
Undefine None from Xlib.h to avoid conflicts (e.g. in Framebuffer).
14 years ago
Vladimír Vondruš
6b55ca96f3
Barebone X/EGL context.
14 years ago