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š
757ca13514
Sdl2Application: don't request specific OpenGL version.
...
I don't want to ditch old Intels with GL 2.1 yet. Also now the version
reported in Context is really the highest supported version, which
optimizes extension presence checks a bit.
14 years ago
Vladimír Vondruš
985b28cf07
Sdl2Application: fix modifiers everywhere, not only for key press.
14 years ago
Vladimír Vondruš
7cdbad0557
Sdl2Application: also lock cursor to window when locking mouse.
14 years ago
Vladimír Vondruš
5b16dbb550
Sdl2Application: support for relative position in mouse move event.
14 years ago
Vladimír Vondruš
2ad7fea174
Sdl2Application: support for modifiers also in mouse events.
...
Lazily loaded on user request.
14 years ago
Vladimír Vondruš
5354396af6
Sdl2Application: using special classes for input events.
...
Will make lazy-loading possible and allows for less-constrained static
polymorphism.
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š
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š
2c0b75df8b
Request OpenGL 3.2 rather than 3.3.
...
Not all 3.x drivers have the latest version, even if it is five years
old.
14 years ago
Vladimír Vondruš
07df630b24
Modified Sdl2WindowContext for source compatibility with others.
...
Stripped off key repeat and separate function for mouse wheel handling.
14 years ago
Vladimír Vondruš
13bb600c3e
Creating Context instance in all *Context classes.
...
The naming is now kinda schizofrenic, hope I come up with something
better.
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š
9d63f35279
Sdl2Context: split mouseEvent to mousePressEvent and mouseReleaseEvent.
...
Preserving consistency with GlutContext and *XContext.
14 years ago
Vladimír Vondruš
070c5ba706
Sdl2Context: calling redraw() in drawEvent() didn't have any effect.
14 years ago
Vladimír Vondruš
a3bc29a000
Separate class for extension wrangler initialization.
14 years ago
Vladimír Vondruš
45d1cb1225
Anonymized unused function parameters.
14 years ago
Vladimír Vondruš
c7bb153d0a
Port to OpenGL ES 2.
...
Desktop OpenGL and OpenGL ES 2 support can be switched using CMake
TARGET_GLES option. All functionality not supported in ES is marked in
documentation.
If targetting OpenGL ES, GLES2/gl2.h is included instead of GLEW.
Mesh class now uses VAOs only in desktop OpenGL, in ES the buffers are
bound on each draw call.
14 years ago
Vladimír Vondruš
acb8029a93
SDL2 context: keyboard handling for basic keys.
14 years ago
Vladimír Vondruš
9cb0846718
Sdl2Context: mouse handling.
14 years ago
Vladimír Vondruš
39a313a357
Brought debug facilities from Corrade::Utility to Magnum namespace.
...
These classes are used so frequently that it is counterproductive to not
have them here.
14 years ago
Vladimír Vondruš
ef6d70c8ad
First version of SDL2 context.
14 years ago