Vladimír Vondruš
dfdec44b01
Platform: portable application arguments specification.
...
Last PITA when porting to NaCl removed. Yay!
13 years ago
Vladimír Vondruš
b55dba8168
Platform: forgot to initialize variable.
13 years ago
Vladimír Vondruš
cdcb37cd0c
Platform: better way to specify application configuration.
...
Each implementation of *Application::Configuration will have different
methods tailored to feature set of the underlying toolkit. Currently
each windowed application's Configuration has only window title (except
NaClApplication) and window size. WindowlessGlxApplication has empty
class. More features will come later. Also created introductionary
documentation for Platform namespace.
13 years ago
Vladimír Vondruš
c5ab86794b
Relicensing to MIT/Expat license, part 3: source files.
...
Added license header also to shader sources. Hopefully it won't harm
compilation times too much.
13 years ago
Vladimír Vondruš
d0def6a763
Platform: reworked *XApplication events to mimic other implementations.
14 years ago
Vladimír Vondruš
0f889369f4
No `using namespace std` anywhere.
...
Also added missing std:: prefix to remaining cases of std::size_t,
std::[u]int[0-9]+_t, std::sin() etc., std::exit().
14 years ago
Vladimír Vondruš
43f6dbc72d
Using integer vector aliases all over the place.
14 years ago
Vladimír Vondruš
891cc6606e
Adapted to Corrade changes.
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š
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š
dd5635a3ab
AbstractXContext: added support for mouse motion event.
14 years ago
Vladimír Vondruš
c83de594c2
AbstractXContext: ability to exit from main loop, added Esc key.
14 years ago
Vladimír Vondruš
8f3abe9dad
AbstractXContext: added modifiers to key and mouse events.
14 years ago
Vladimír Vondruš
fa50c8fe78
AbstractXContext: store viewport size in the right vector type.
14 years ago
Vladimír Vondruš
0ca0f03f1c
Implemented AbstractXContext::redraw().
14 years ago
Vladimír Vondruš
436c07a706
Removed done @todo .
14 years ago
Vladimír Vondruš
a3bc29a000
Separate class for extension wrangler initialization.
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š
442c9629ae
Code reorganization.
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š
9ea8efe73b
EglContext: Handle window closing.
...
This is the most fucked up way to so fucking simple thing.
14 years ago
Vladimír Vondruš
6c964d703c
EglContext: Handle window resizing.
14 years ago
Vladimír Vondruš
d92df0777e
EglContext: Not sure what this did, but this doesn't affect anything.
...
Was getting out-of-sync with INPUT_MASK, so setting it to 0.
14 years ago
Vladimír Vondruš
ceb116c41c
EglContext: keyboard and mouse handling.
14 years ago
Vladimír Vondruš
b7df327466
EglContext: Show window on exec(), make the context current only once.
14 years ago
Vladimír Vondruš
54f3dc3d99
Small cleanup, fixed small typo.
14 years ago
Vladimír Vondruš
5bef02f46b
Fixed compiler warnings for EglContext.
...
X11 macros are a mess with a lot of C-style casts, disabled the warnings
for this file. Also anonymized unused constructor parameters.
14 years ago
Vladimír Vondruš
92aab9753d
Fixed compilation of EglContext.
...
Introduced in 59ca55abe0 , we need 'None'
after all.
14 years ago
Vladimír Vondruš
6b55ca96f3
Barebone X/EGL context.
14 years ago