Browse Source

Platform: none of EmscriptenApplication constructors were defined.

... when compiling w/o TARGET_GL.
pull/300/head
Vladimír Vondruš 7 years ago
parent
commit
173a87eaf4
  1. 8
      src/Magnum/Platform/EmscriptenApplication.cpp
  2. 10
      src/Magnum/Platform/EmscriptenApplication.h

8
src/Magnum/Platform/EmscriptenApplication.cpp

@ -171,11 +171,13 @@ namespace {
}
}
#ifdef MAGNUM_TARGET_GL
EmscriptenApplication::EmscriptenApplication(const Arguments& arguments): EmscriptenApplication{arguments, Configuration{}, GLConfiguration{}} {}
EmscriptenApplication::EmscriptenApplication(const Arguments& arguments): EmscriptenApplication{arguments, Configuration{}} {}
EmscriptenApplication::EmscriptenApplication(const Arguments& arguments, const Configuration& configuration): EmscriptenApplication{arguments, configuration, GLConfiguration{}} {}
EmscriptenApplication::EmscriptenApplication(const Arguments& arguments, const Configuration& configuration): EmscriptenApplication{arguments, NoCreate} {
create(configuration);
}
#ifdef MAGNUM_TARGET_GL
EmscriptenApplication::EmscriptenApplication(const Arguments& arguments, const Configuration& configuration, const GLConfiguration& glConfiguration): EmscriptenApplication{arguments, NoCreate} {
create(configuration, glConfiguration);
}

10
src/Magnum/Platform/EmscriptenApplication.h

@ -182,8 +182,16 @@ class EmscriptenApplication {
/**
* @brief Construct with given configuration
*
* Equivalent to calling @ref EmscriptenApplication(const Arguments&, const Configuration&, const GLConfiguration&)
* If @ref Configuration::WindowFlag::Contextless is present or Magnum
* was not built with @ref MAGNUM_TARGET_GL, this creates a window
* without any GPU context attached, leaving that part on the user.
*
* If none of the flags is present and Magnum was built with
* @ref MAGNUM_TARGET_GL, this is equivalent to calling
* @ref EmscriptenApplication(const Arguments&, const Configuration&, const GLConfiguration&)
* with default-constructed @ref GLConfiguration.
*
* See also @ref building-features for more information.
*/
explicit EmscriptenApplication(const Arguments& arguments, const Configuration& configuration);

Loading…
Cancel
Save