Vladimír Vondruš
61dd06cb92
Why the hell did I write this?
13 years ago
Vladimír Vondruš
b85f50ffab
Platform::Sdl2Application: properly handle SDL_QUIT.
...
F'ed up in 6fd8dc86ad , the app didn't
respond to closing the window.
13 years ago
Vladimír Vondruš
7ef8432fbe
Doxygen: ignore specific namespaces instead of whole directories.
...
Less maintenance burden with `#ifndef DOXYGEN_GENERATING_OUTPUT`,
removed the ones which are not needed anymore.
13 years ago
Vladimír Vondruš
33ad4b0cff
Platform::Sdl2Application: just wait for next event.
...
No need to loop over when SDL has function designed to do this.
13 years ago
Vladimír Vondruš
6fd8dc86ad
Platform: moved Sdl2Application event loop into separate function.
...
Allowing it to be called perodically from some callback.
13 years ago
Vladimír Vondruš
c5c57e17da
Emscripten: ported FindOpenGLES2.cmake and FindSDL2.cmake.
...
SDL headers are now included relatively.
13 years ago
Vladimír Vondruš
2a6c52c97b
Platform: fix WindowlessGlxApplication context creation and destruction.
...
The variable wasn't initialized so it exited with assertion failure,
moreover the context wasn't deleted on destruction, causing memory leak.
13 years ago
Vladimír Vondruš
f0958647c1
Platform: more intuitive argc/argv Arguments structure.
13 years ago
Vladimír Vondruš
ef0efecc9c
Platform: fixed Sdl2Application::tryCreateContext().
...
It seems that the context is negotiated when creating the window, thus
it fails there and not later when actually creating the context.
13 years ago
Vladimír Vondruš
bb39338008
Platform: better diagnostic in Sdl2Application::tryCreateContext().
13 years ago
Vladimír Vondruš
e69693e87f
Use `std::` prefix everywhere.
13 years ago
Vladimír Vondruš
fe0f5dc438
Use `nullptr` instead of `0`.
13 years ago
Vladimír Vondruš
5c89c89ff8
Platform: added window flags to Sdl2Application.
...
Making resizable window the default to be consistent with GLUT and
others.
13 years ago
Vladimír Vondruš
bda6202d42
Platform: ability to negotiate context in {Glut,NaCl,Sdl2}Application.
13 years ago
Vladimír Vondruš
df5630225d
Platform: minor code cleanup in Sdl2Application.
...
* Explicitly set multisample attributes in all cases (so the attributes
are always properly set when creating another context).
* Do both assign and test in `if` statement.
13 years ago
Vladimír Vondruš
daffbdce0c
Platform: some const fascism.
13 years ago
Vladimír Vondruš
ad8f35c89e
Platform: multisampling support in NaClApplication.
13 years ago
Vladimír Vondruš
11daec1df6
Platform: forgot to initialize variable. Twice.
13 years ago
Vladimír Vondruš
dfdec44b01
Platform: portable application arguments specification.
...
Last PITA when porting to NaCl removed. Yay!
13 years ago
Vladimír Vondruš
8c75f6e8c2
Expose MAGNUM_BUILD_STATIC in magnumConfigure.h.
13 years ago
Vladimír Vondruš
36bedb3f5a
NaCl target system is now handled with CORRADE_TARGET_NACL.
13 years ago
Vladimír Vondruš
cda51f3dd5
Text: moved FreeType and HarfBuzz fonts into plugins.
...
In next few commits AbstractFont will become plugin interface. Font
implementations are now in magnum-plugins repository. Removed all traces
of FreeType and HarfBuzz dependencies.
13 years ago
Vladimír Vondruš
b55dba8168
Platform: forgot to initialize variable.
13 years ago
Vladimír Vondruš
b0336c240d
Platform: multisampling support in GlutApplication.
13 years ago
Vladimír Vondruš
e8c7213d7a
Platform: multisampling support in Sdl2Application.
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š
5f77a12f47
Fixed typos (ahem).
13 years ago
Vladimír Vondruš
2c8a4c306c
Platform: added Application and WindowlessApplication aliases.
...
If only one *Application or Windowless*Application header is included,
the class is aliased to Application or WindowlessApplication to simplify
porting.
13 years ago
Vladimír Vondruš
508dd4d94d
Platform: have special MAGNUM_*APPLICATION_MAIN() for each class.
13 years ago
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