Vladimír Vondruš
d04b308aa3
Reducing pointer chasings, part 1: method chaining via references.
...
Makes some cases less consistent (and some convenience shortcuts
impossible), but goes well with the attitude "don't use pointer when it
can't be null".
13 years ago
Vladimír Vondruš
99c72ed99b
Initial support for OpenGL 4.4.
13 years ago
Vladimír Vondruš
e35b82ba9b
Platform: forgot this.
...
Also the message in 883600e373 should say
"Make Configuration constructors _implicit_". Damn.
13 years ago
Vladimír Vondruš
231aaeb4aa
Platform: documentation updates.
...
It looks much better now without all that explicit/implicit deletion.
13 years ago
Vladimír Vondruš
883600e373
Platform: make Configuration constructors explicit.
...
As it now isn't passed by pointer, this allows doing things like this:
/* Lost all hope in this hardware */
if(!awesomeFeatureSupported)
createContext({});
13 years ago
Vladimír Vondruš
4222d8a297
Platform: pass application configuration via reference, not pointer.
...
Removes the need for explicit new/delete calls.
13 years ago
Vladimír Vondruš
2f19497b39
Platform: hide the <embed> in magnum-info even better.
...
The content was placed outside the frame, causing pain and eyesore.
13 years ago
Vladimír Vondruš
ce52947297
Platform: don't forget to install also the CSS file.
13 years ago
Vladimír Vondruš
106921ac99
Platform: improve magnum-info in NaCl, add reusable JS and CSS files.
...
The page now displays download progress, last error and also hints to
the user that JS console might contain something useful. NaClApplication
and WindowlessNaClApplication documentation has been updated with brief
"bootstrap guide".
13 years ago
Vladimír Vondruš
e8e94d86f5
Platform: minor CMakeLists.txt cleanup.
13 years ago
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