Add support for building custom fonts

This commit is contained in:
GEEKiDoS
2021-06-29 02:25:23 +08:00
parent 6d93f6a067
commit d222334313
4 changed files with 5216 additions and 1 deletions

View File

@ -142,6 +142,13 @@ namespace Utils
return static_cast<T*>(Allocate(count * sizeof(T)));
}
template <typename T> static inline T* Duplicate(T* original)
{
T* data = Memory::Allocate<T>();
std::memcpy(data, original, sizeof(T));
return data;
}
static char* DuplicateString(const std::string& string);
static void Free(void* data);