|
|
|
@ -134,14 +134,34 @@ class AbstractXApplication { |
|
|
|
* should exit, @cpp true @ce otherwise |
|
|
|
* should exit, @cpp true @ce otherwise |
|
|
|
* @m_since{2020,06} |
|
|
|
* @m_since{2020,06} |
|
|
|
* |
|
|
|
* |
|
|
|
|
|
|
|
* Calls @ref mainLoopEventIteration() and @ref mainLoopDrawEventIteration() |
|
|
|
|
|
|
|
* managing the delays between them. |
|
|
|
* Called internally from @ref exec(). If you want to have better |
|
|
|
* Called internally from @ref exec(). If you want to have better |
|
|
|
* control over how the main loop behaves, you can call this function |
|
|
|
* control over how the main loop behaves, you can call this function |
|
|
|
|
|
|
|
* (or the sub mainLoopIteration functions) |
|
|
|
* yourself from your own `main()` function instead of it being called |
|
|
|
* yourself from your own `main()` function instead of it being called |
|
|
|
* automatically from @ref exec() / @ref MAGNUM_GLXAPPLICATION_MAIN() |
|
|
|
* automatically from @ref exec() / @ref MAGNUM_GLXAPPLICATION_MAIN() |
|
|
|
* / @ref MAGNUM_XEGLAPPLICATION_MAIN(). |
|
|
|
* / @ref MAGNUM_XEGLAPPLICATION_MAIN(). |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
bool mainLoopIteration(); |
|
|
|
bool mainLoopIteration(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @brief Process pending application events |
|
|
|
|
|
|
|
* @return @cpp false @ce if @ref exit() was called and the application |
|
|
|
|
|
|
|
* should exit, @cpp true @ce otherwise |
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* Called internally from @ref mainLoopIteration(). |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bool mainLoopEventIteration(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @brief Calls @ref drawEvent() if @ref Flag::Redraw is set and unset it. |
|
|
|
|
|
|
|
* @return @cpp true @ce if @ref drawEvent() was called, @cpp false @ce otherwise |
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* Called internally from @ref mainLoopIteration(). |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bool mainLoopDrawEventIteration(); |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Exit application |
|
|
|
* @brief Exit application |
|
|
|
* @param exitCode The exit code the application should return |
|
|
|
* @param exitCode The exit code the application should return |
|
|
|
|