Support color in text

This commit is contained in:
2023-06-22 21:52:34 +02:00
parent 378196d422
commit dded028da2
4 changed files with 53 additions and 16 deletions

View File

@@ -8,6 +8,24 @@ namespace JabyEngine {
S second;
};
template<typename T, typename S>
struct cplx_pair {
T first;
S second;
template<typename T2, typename S2>
constexpr cplx_pair<T, S>& operator=(const pair<T2, S2>& obj) {
this->first = obj.first;
this->second = obj.second;
return *this;
}
};
template <typename... Args>
constexpr cplx_pair<Args&...> tie(Args&... args) {
return {args...};
}
enum struct Progress {
InProgress = 0,
Done,