Browse Source

Doc++, warning if GLUT is not found.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
73a515e0c0
  1. 2
      src/Contexts/CMakeLists.txt
  2. 6
      src/Contexts/GlutContext.h

2
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()

6
src/Contexts/GlutContext.h

@ -39,10 +39,12 @@ class GlutContext: public AbstractContext {
public:
/**
* @brief Constructor
* @param argc Count of arguments of <tt>main()</tt> function
* @param argv Arguments of <tt>main()</tt> 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<GLsizei>& size = Math::Vector2<GLsizei>(800, 600));

Loading…
Cancel
Save