Browse Source

Platform: if you call Sdl2Application::tickEvent(), it gets disabled.

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
5be3f3ca7e
  1. 7
      src/Magnum/Platform/Sdl2Application.h

7
src/Magnum/Platform/Sdl2Application.h

@ -966,6 +966,7 @@ class Sdl2Application {
*/ */
virtual void exitEvent(ExitEvent& event); virtual void exitEvent(ExitEvent& event);
protected:
/** /**
* @brief Tick event * @brief Tick event
* *
@ -974,9 +975,15 @@ class Sdl2Application {
* might be no input events and redraw is not requested. Useful e.g. * might be no input events and redraw is not requested. Useful e.g.
* for asynchronous task polling. Use @ref setMinimalLoopPeriod()/ * for asynchronous task polling. Use @ref setMinimalLoopPeriod()/
* @ref setSwapInterval() to control main loop frequency. * @ref setSwapInterval() to control main loop frequency.
*
* If this implementation gets called from its @cpp override @ce, it
* will effectively stop the tick event from being fired and the app
* returns back to waiting for input events. This can be used to
* disable the tick event when not needed.
*/ */
virtual void tickEvent(); virtual void tickEvent();
private:
/** /**
* @brief Any event * @brief Any event
* *

Loading…
Cancel
Save