emfunctions.hpp
Specialized, useful function for Empirical.
Defines
-
AlertVar(VAR)
Functions
-
static void DelayCall(const std::function<void()> &in_fun, int delay)
Call a function after a specified amount of time.
-
static void OnResize(const std::function<void()> &in_fun)
Provide a function to call whenever a window’s size changes (no arguments).
-
static void OnResize(const std::function<void(int, int)> &in_fun)
Provide a function to call whenever a window’s size changes (new size as arguments)
-
inline double GetTime()
Get the current time, as provided by the web browser.
-
inline int GetWindowInnerWidth()
Determine with width of the current window.
-
inline int GetWindowInnerHeight()
Determine with height of the current window.
-
static void SetCursor(const char *type)