Vladimír Vondruš
29cb2a8d7a
Platform: added MAGNUM_WINDOWLESSAPPLICATION_MAIN() alias.
...
Treating windowless application differently to windowed ones, as they
don't share any API with them.
13 years ago
Vladimír Vondruš
78b52627c4
Platform: fix warning about undeclared function.
13 years ago
Vladimír Vondruš
fa7665d63e
Platform: no need to include GL headers just for GL_TRUE.
...
It is, always was and always will be defined as 1, so why bother.
13 years ago
Vladimír Vondruš
38ec076eda
Minor code cleanup (unused parameters).
13 years ago
Vladimír Vondruš
a0b83edd2b
Relicensing to MIT/Expat license, part 4: CMake and documentation files.
...
They didn't contain license header before, but I think adding it also
there wouldn't do any harm. Documentation is also integral part of the
codebase.
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š
6a5d75d1e4
Relicensing to MIT/Expat license, part 2: headers.
13 years ago
Vladimír Vondruš
90dbb28763
Thorough CMakeLists cleanup.
...
* Calling enable_testing() only in root path.
* Using CORRADE_CXX_FLAGS instead of our own set to make things easier
to maintain.
* Various cleanup and reorganization.
13 years ago
Vladimír Vondruš
31582ce2f8
Todo++
13 years ago
Vladimír Vondruš
1693c772ad
Moved OpenGL includes out from Magnum.h.
...
OpenGL includes are ~35k lines together and it is a waste of
compilation time to include them even if they are not needed at all
(e.g. whole SceneGraph and Physics libraries). Saves ~10s of compilation
time (6:46 before, now 6:35).
13 years ago
Vladimír Vondruš
006dbf417a
Platform: using new type aliases in whole Platform namespace.
13 years ago
Vladimír Vondruš
792198ae89
Platform: undefine another conflicting macro.
13 years ago
Vladimír Vondruš
9464e805e1
Use {} instead of "".
...
Calls default std::string constructor instead of converting from const
char*, might possibly save unneeded allocation.
13 years ago
Vladimír Vondruš
b54f53743e
Platform: expose MAGNUM_USE_HARFBUZZ in magnum-info utility.
13 years ago
Vladimír Vondruš
027df55637
Platform: doc++
13 years ago
Vladimír Vondruš
d8629fee09
Platform: don't allow SDL2 to redefine main().
13 years ago
Vladimír Vondruš
bc48107d5a
magnum-info: indent with 4, not 3 spaces.
13 years ago
Vladimír Vondruš
c113598845
Platform: added Sdl2Application::exit().
13 years ago
Vladimír Vondruš
0dea0d8aff
Platform: cleaned-up AbstractXApplication header.
13 years ago
Vladimír Vondruš
3c347441e6
Ability to build Magnum for OpenGL ES emulated with desktop OpenGL.
14 years ago
Vladimír Vondruš
29a07c7d62
GCC 4.6 compilation fixes.
14 years ago
Vladimír Vondruš
d0def6a763
Platform: reworked *XApplication events to mimic other implementations.
14 years ago
Vladimír Vondruš
10de569755
Doc++
14 years ago
Vladimír Vondruš
6b4a833d6e
Minor code cleanup.
14 years ago
Vladimír Vondruš
d552a658c0
Platform: reworked GlutApplication events to mimic SDL and NaClApplication.
14 years ago
Vladimír Vondruš
4b2551bbb5
No trailing whitespace in magnum-info utility.
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š
3b37dfa6b8
Deleted constructors of classes with only static members.
...
They shouldn't be instantiated, prevent mistakes with this.
14 years ago
Vladimír Vondruš
dc1ab80cda
Doc++
14 years ago
Vladimír Vondruš
14a5f1a864
Platform: added magnum-info utility.
...
Similar to `glxinfo`, displays information about Magnum engine and
OpenGL capabilities. Currently for Unix/X11 only, as I don't have
windowless application implementation for other platforms.
14 years ago
Vladimír Vondruš
8e947fbabb
Platform: Added WindowlessGlxApplication.
...
Finally something that can be used for:
* Unit tests
* Resource compilation
* Benchmarks
* ...
I also desperately need something similar for Windows (and Mac OS, too).
14 years ago
Vladimír Vondruš
ef75989178
Platform: don't require any specific OpenGL version.
...
We still want to target old Intel machines with OpenGL 2.1. Also moved
important information from constructor documentation to class
documentation. Who would look into constructor documentation for that?
14 years ago
Vladimír Vondruš
f0764cac4e
Doc++
...
How I could forgot @brief here?!
14 years ago
Vladimír Vondruš
9f20c8bca4
Platform: forgot to rename *WindowContext -> *Application in some places.
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š
ae013effff
Adapted to Corrade changes.
...
Optimalizations in Corrade::TestSuite and Corrade::Utility::Debug leaded
to significant reduction of compilation time - on my machine it was
~5:38 before with building of unit tests enabled, now only ~5:00.
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š
891cc6606e
Adapted to Corrade changes.
14 years ago
Vladimír Vondruš
6793a30701
NaClApplication: implemented mouse locking.
14 years ago
Vladimír Vondruš
331b027fb8
Minor cleanup.
14 years ago
Vladimír Vondruš
78e9c7add1
NaClApplication: schedule one more redraw after fullscreen switch.
...
Otherwise NaCl displays previous image, notable mainly when exiting
16:9 fullscreen back to 4:3.
14 years ago
Vladimír Vondruš
97383b8a62
NaClApplication: fullscreen switching support.
14 years ago
Vladimír Vondruš
152eb4e4b4
NaClApplication: fixed boolean fuckup.
...
Now viewportEvent() is called properly on startup _and_ when resizing,
not everytime else.
14 years ago
Vladimír Vondruš
c488d8f2d0
Minor #include cleanup.
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š
cf0ca06d39
NaClApplication: relative position in MouseMoveEvent.
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