|
|
|
@ -336,6 +336,30 @@ class GlfwApplication { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Vector2i windowSize() const; |
|
|
|
Vector2i windowSize() const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if GLFW_VERSION_MAJOR*100 + GLFW_VERSION_MINOR >= 302 || defined(DOXYGEN_GENERATING_OUTPUT) |
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @brief Set window minimum size |
|
|
|
|
|
|
|
* @param size The minimum size, in screen coordinates |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* If a value is set to @cpp -1 @ce, it will disable/remove the |
|
|
|
|
|
|
|
* corresponding limit. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @note Supported since GLFW 3.2. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
void setMinWindowSize(const Vector2i& size = {-1, -1}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @brief Set window maximum size |
|
|
|
|
|
|
|
* @param size The maximum size, in screen coordinates |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* If a value is set to @cpp -1 @ce, it will disable/remove the |
|
|
|
|
|
|
|
* corresponding limit. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @note Supported since GLFW 3.2. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
void setMaxWindowSize(const Vector2i& size = {-1, -1}); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if defined(MAGNUM_TARGET_GL) || defined(DOXYGEN_GENERATING_OUTPUT) |
|
|
|
#if defined(MAGNUM_TARGET_GL) || defined(DOXYGEN_GENERATING_OUTPUT) |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Framebuffer size |
|
|
|
* @brief Framebuffer size |
|
|
|
@ -552,6 +576,9 @@ class GlfwApplication { |
|
|
|
Containers::Pointer<Platform::GLContext> _context; |
|
|
|
Containers::Pointer<Platform::GLContext> _context; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
int _exitCode; |
|
|
|
int _exitCode; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Vector2i _minWindowSize; |
|
|
|
|
|
|
|
Vector2i _maxWindowSize; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
CORRADE_ENUMSET_OPERATORS(GlfwApplication::Flags) |
|
|
|
CORRADE_ENUMSET_OPERATORS(GlfwApplication::Flags) |
|
|
|
|