Vladimír Vondruš
4091d7c9b5
Platform: fix unused variable warning.
13 years ago
Vladimír Vondruš
c81a1d78b8
Platform: added also CORRADE_TARGET_EMSCRIPTEN to `magnum-info`.
13 years ago
Vladimír Vondruš
ea7bf5038d
Platform: print each flag on separate line in `magnum-info`.
...
It's more readable.
13 years ago
Vladimír Vondruš
b62db63c57
Platform: added CORRADE_GCC47_COMPATIBILITY to `magnum-info`.
13 years ago
Vladimír Vondruš
a08978e7cb
Platform: ported magnum-info to NaCl.
...
The binary installs into `bin/`, the HTML and NMF into `share/`, the
user is currently expected to copy them manually to server.
13 years ago
Vladimír Vondruš
4ffc84699b
Platform: portable WindowlessApplication usage in `magnum-info`.
13 years ago
Vladimír Vondruš
7756a0e258
Platform: Doxygen fixes.
13 years ago
Vladimír Vondruš
7b68dc2e0a
Platform: added WindowlessNaClApplication.
...
Stripped-down version of NaClApplication with unusable default
framebuffer and no event handling, primarily for various testing usage.
13 years ago
Vladimír Vondruš
902b368207
Platform: fixed copypaste error.
13 years ago
Vladimír Vondruš
6c64b56cc8
Platform: redirect debug output to JS console in NaClApplication.
13 years ago
Vladimír Vondruš
f0e9871f10
Platform: #undef another mess from Xorg headers.
13 years ago
Vladimír Vondruš
72e83c4f49
Platform: inline/virtual optimizations.
...
Removed redundant `inline` keyword, changed public (pure) virtual
destructors to protected nonvirtual ones.
13 years ago
Vladimír Vondruš
db71a23e3c
Bring whole Corrade namespace into Magnum namespace.
...
These projects are tightly interconnected anyway, this means a lot less
typing (yay!).
13 years ago
Vladimír Vondruš
ab5b6fcbb3
Added Context::shadingLanguageVersionStrings(), better extension query.
...
Not relying on GL version when asking for extensions, i.e. Mesa might
know glGetStringi() even if it reports OpenGL 2.1 only. Similarly in
shadingLanguageVersionStrings(), not all HW is capable of 4.3, but
GL_NUM_SHADING_LANGUAGE_VERSIONS might be supported on GL3 HW too (not
my case, though).
13 years ago
Vladimír Vondruš
11b3150a31
Support for ARB_robustness.
...
Robust *Framebuffer::read() access, ability to query robust buffer
access behavior in Context::flags(), ability to check graphics reset
status and reset notification policy in Renderer.
13 years ago
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