Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
Sustain.h File Reference
#include <limits>
#include <misc/gen/IntervalTimer.h>
#include <misc/gen/TVector.h>
#include <misc/gen/target.h>
#include <misc/global.h>
Include dependency graph for Sustain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sf::SustainBase
 Base class for template TSustain which enables repetitive calls from the main thread with a set frequency. More...
 
class  sf::TSustain< T >
 Template to make the sustain system call a class method regularly. More...
 
class  sf::StaticSustain
 Implements a class to hook a static function to the global main thread sustain call. More...
 

Namespaces

namespace  sf
 

Functions

_MISC_FUNC bool sf::setSustainTimer (int msec)
 This function will enable a timer that call all Sustain functions in the _defaultVector member of the 'TSustain' template class. Passing the repetition rate in milliseconds. if the passed time is zero the timer stops. Returns true if it was successful.
 
_MISC_FUNC int sf::getSustainTimer ()
 Gets the current sustain timer interval in milliseconds.