Browse Source

Platform: added MAGNUM_WINDOWLESSAPPLICATION_MAIN() alias.

Treating windowless application differently to windowed ones, as they
don't share any API with them.
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
29cb2a8d7a
  1. 10
      src/Platform/WindowlessGlxApplication.h

10
src/Platform/WindowlessGlxApplication.h

@ -96,8 +96,8 @@ int main(int argc, char** argv) {
return app.exec(); return app.exec();
} }
@endcode @endcode
When no other application header is included this macro is also aliased to When no other windowless application header is included this macro is also
`MAGNUM_APPLICATION_MAIN()`. aliased to `MAGNUM_WINDOWLESSAPPLICATION_MAIN()`.
*/ */
#define MAGNUM_WINDOWLESSGLXAPPLICATION_MAIN(className) \ #define MAGNUM_WINDOWLESSGLXAPPLICATION_MAIN(className) \
int main(int argc, char** argv) { \ int main(int argc, char** argv) { \
@ -106,10 +106,10 @@ When no other application header is included this macro is also aliased to
} }
#ifndef DOXYGEN_GENERATING_OUTPUT #ifndef DOXYGEN_GENERATING_OUTPUT
#ifndef MAGNUM_APPLICATION_MAIN #ifndef MAGNUM_WINDOWLESSAPPLICATION_MAIN
#define MAGNUM_APPLICATION_MAIN(className) MAGNUM_WINDOWLESSGLXAPPLICATION_MAIN(className) #define MAGNUM_WINDOWLESSAPPLICATION_MAIN(className) MAGNUM_WINDOWLESSGLXAPPLICATION_MAIN(className)
#else #else
#undef MAGNUM_APPLICATION_MAIN #undef MAGNUM_WINDOWLESSAPPLICATION_MAIN
#endif #endif
#endif #endif

Loading…
Cancel
Save