mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
misc hud-related updates
This commit is contained in:
parent
1f3d1e2640
commit
11bb9e5926
23 changed files with 400 additions and 165 deletions
|
|
@ -1,17 +1,23 @@
|
|||
#ifndef DELEGATES_H_
|
||||
#define DELEGATES_H_
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
using runnable = std::function<void()>;
|
||||
using stringconsumer = std::function<void(const std::string&)>;
|
||||
|
||||
// data sources
|
||||
using wstringsupplier = std::function<std::wstring()>;
|
||||
using wstringconsumer = std::function<void(const std::wstring&)>;
|
||||
using doublesupplier = std::function<double()>;
|
||||
using doubleconsumer = std::function<void(double)>;
|
||||
using boolsupplier = std::function<bool()>;
|
||||
using vec2supplier = std::function<glm::vec2()>;
|
||||
|
||||
using stringconsumer = std::function<void(const std::string&)>;
|
||||
using wstringconsumer = std::function<void(const std::wstring&)>;
|
||||
using doubleconsumer = std::function<void(double)>;
|
||||
using boolconsumer = std::function<void(bool)>;
|
||||
using int_array_consumer = std::function<void(const int[], size_t)>;
|
||||
using wstringchecker = std::function<bool(const std::wstring&)>;
|
||||
|
||||
#endif // DELEGATES_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue