Working on backing files.

Also started a sketches project to illustrate quick ideas.
This commit is contained in:
2023-10-11 23:27:42 -07:00
parent fd6e0c6899
commit 2dcc577f57
13 changed files with 590 additions and 30 deletions

12
Defs.h
View File

@@ -28,8 +28,13 @@
#include <string>
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
typedef std::optional<std::string> OptString;
template<typename T>
T Min(T a, T b) { return a > b ? b : a; }
template size_t Min<size_t>(size_t a, size_t b);
@@ -39,4 +44,11 @@ T Max(T a, T b) { return a > b ? a : b; }
template size_t Max(size_t a, size_t b);
/// \todo Consider abstracting platforms to a separate subsystem.
static const std::string PlatformLinux("Linux");
static const std::string PlatformApple("Darwin");
static const std::string PlatformWindows("Windows");
static const std::string PlatformCurrent(TOSTRING(KGE_PLATFORM));
#endif // KEPP__DEFS_H_