Vladimír Vondruš
10de569755
Doc++
14 years ago
Vladimír Vondruš
d552a658c0
Platform: reworked GlutApplication events to mimic SDL and NaClApplication.
14 years ago
Vladimír Vondruš
7e66a09461
Marking all constructors explicit, except for matrix and vector classes.
...
It prevents unwanted implicit conversions from e.g. nullptr to Camera,
Vector2 to Physics::Point etc. By making all the constructors explicit
it is easier to routinely add the keyword to all new classes instead of
thinking about cases when to add and when not to.
14 years ago
Vladimír Vondruš
43f6dbc72d
Using integer vector aliases all over the place.
14 years ago
Vladimír Vondruš
6c5d96d645
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š
b013c0d26e
Sdl2Application: proper implementation of event accepting/rejecting.
...
It actually IS useful for event propagation.
14 years ago
Vladimír Vondruš
7cdbad0557
Sdl2Application: also lock cursor to window when locking mouse.
14 years ago
Vladimír Vondruš
ddc0652272
Sdl2Application: make mouse locking functions public.
14 years ago
Vladimír Vondruš
858661fa7e
Sdl2Application: support for mouse locking.
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š
a3c37cd277
Doc++, minor cleanup.
14 years ago
Vladimír Vondruš
54dc556eb5
NaClApplication: keyboard input handling.
14 years ago
Vladimír Vondruš
3d92162505
Sdl2Application: cursor position for key events is not available either.
14 years ago
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š
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š
0646a6a12e
Contexts: updated default window names.
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š
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š
9d63f35279
Sdl2Context: split mouseEvent to mousePressEvent and mouseReleaseEvent.
...
Preserving consistency with GlutContext and *XContext.
14 years ago
Vladimír Vondruš
b3a5e36c73
Doc++, code cleanup.
14 years ago
Vladimír Vondruš
794f9bdec5
Minor cleanup.
14 years ago
Vladimír Vondruš
54f3dc3d99
Small cleanup, fixed small typo.
14 years ago
Vladimír Vondruš
45d1cb1225
Anonymized unused function parameters.
14 years ago
Vladimír Vondruš
0ac52b1c8b
Doc++
...
Added some TODOs, hiding internal Mesh implementation from the
documentation.
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š
ef6d70c8ad
First version of SDL2 context.
14 years ago