Browse Source

Platform: those flags are not flags, damnit.

Took me an hour to figure out. Argh.
pull/300/head
Vladimír Vondruš 7 years ago
parent
commit
4c8ac4f389
  1. 16
      src/Magnum/Platform/EmscriptenApplication.h

16
src/Magnum/Platform/EmscriptenApplication.h

@ -512,7 +512,7 @@ class EmscriptenApplication::GLConfiguration {
* treated as representing premultiplied alpha values. If not set, the * treated as representing premultiplied alpha values. If not set, the
* alpha channel represents non-premultiplied alpha. * alpha channel represents non-premultiplied alpha.
*/ */
PremultipliedAlpha, PremultipliedAlpha = 1 << 0,
/** /**
* Preserve drawing buffer * Preserve drawing buffer
@ -523,7 +523,7 @@ class EmscriptenApplication::GLConfiguration {
* @ref EmscriptenApplication::drawEvent(). * @ref EmscriptenApplication::drawEvent().
* Not setting this gives better performance. * Not setting this gives better performance.
*/ */
PreserveDrawingBuffer, PreserveDrawingBuffer = 1 << 1,
/** /**
* Prefer low power to high performance * Prefer low power to high performance
@ -531,7 +531,7 @@ class EmscriptenApplication::GLConfiguration {
* If set, the WebGL power preference will be set to reduce power * If set, the WebGL power preference will be set to reduce power
* consumption. * consumption.
*/ */
PreferLowPowerToHighPerformance, PreferLowPowerToHighPerformance = 1 << 2,
/** /**
* Fail if major performance caveat * Fail if major performance caveat
@ -540,7 +540,7 @@ class EmscriptenApplication::GLConfiguration {
* only able to create a context that does not give good hardware- * only able to create a context that does not give good hardware-
* accelerated performance. * accelerated performance.
*/ */
FailIfMajorPerformanceCaveat, FailIfMajorPerformanceCaveat = 1 << 3,
/** /**
* Explicit swap control * Explicit swap control
@ -549,7 +549,7 @@ class EmscriptenApplication::GLConfiguration {
* [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.explicitSwapControl) * [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.explicitSwapControl)
* for more details. * for more details.
*/ */
ExplicitSwapControl, ExplicitSwapControl = 1 << 4,
/** /**
* Enable WebGL extensions by default * Enable WebGL extensions by default
@ -558,7 +558,7 @@ class EmscriptenApplication::GLConfiguration {
* [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.enableExtensionsByDefault) * [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.enableExtensionsByDefault)
* for more details. * for more details.
*/ */
EnableExtensionsByDefault, EnableExtensionsByDefault = 1 << 5,
/** /**
* Render via offscreen back buffer * Render via offscreen back buffer
@ -567,7 +567,7 @@ class EmscriptenApplication::GLConfiguration {
* [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.renderViaOffscreenBackBuffer) * [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.renderViaOffscreenBackBuffer)
* for more details. * for more details.
*/ */
RenderViaOffscreenBackBuffer, RenderViaOffscreenBackBuffer = 1 << 6,
/** /**
* Proxy content to main thread * Proxy content to main thread
@ -576,7 +576,7 @@ class EmscriptenApplication::GLConfiguration {
* [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.proxyContextToMainThread) * [Emscripten API reference](https://emscripten.org/docs/api_reference/html5.h.html#c.EmscriptenWebGLContextAttributes.proxyContextToMainThread)
* for more details. * for more details.
*/ */
ProxyContextToMainThread, ProxyContextToMainThread = 1 << 7
}; };
/** /**

Loading…
Cancel
Save