From 73a515e0c0ffd3763474e81176e52df255ab408f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 27 May 2012 15:49:07 +0200 Subject: [PATCH] Doc++, warning if GLUT is not found. --- src/Contexts/CMakeLists.txt | 2 +- src/Contexts/GlutContext.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Contexts/CMakeLists.txt b/src/Contexts/CMakeLists.txt index a7519d44d..9869c968c 100644 --- a/src/Contexts/CMakeLists.txt +++ b/src/Contexts/CMakeLists.txt @@ -7,5 +7,5 @@ if(GLUT_FOUND) install(FILES GlutContext.h DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}/Contexts) install(TARGETS MagnumGlutContext DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR}) else() - message(STATUS "GLUT library was not found. GLUT context library will not be generated.") + message(WARNING "GLUT library was not found. GLUT context library will not be generated.") endif() diff --git a/src/Contexts/GlutContext.h b/src/Contexts/GlutContext.h index 86ca69e96..5d897f62d 100644 --- a/src/Contexts/GlutContext.h +++ b/src/Contexts/GlutContext.h @@ -39,10 +39,12 @@ class GlutContext: public AbstractContext { public: /** * @brief Constructor - * @param argc Count of arguments of main() function - * @param argv Arguments of main() function + * @param argc Count of arguments of `main()` function + * @param argv Arguments of `main()` function * @param title Window title * @param size Window size + * + * Creates double-buffered RGBA window with depth and stencil buffers. */ GlutContext(int& argc, char** argv, const std::string& title = "Magnum GLUT context", const Math::Vector2& size = Math::Vector2(800, 600));