1
0
Fork 0

Platform/PlatformApplication: adding create() method.

This commit is contained in:
Henrik Hautakoski 2020-12-26 17:20:05 +01:00
parent 0540f5d201
commit b91b9f3768
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#include "PlatformApplication.h"
#ifdef _WIN32
#include <Platform/Win32/Win32Application.h>
typedef sp::Win32Application ApplicationType;
#elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__)
#include <Platform/Unix/UnixApplication.h>
typedef sp::UnixApplication ApplicationType;
#else
#error "No Application implementation exists"
#endif
namespace sp {
PlatformApplication* PlatformApplication::create()
{
return new ApplicationType;
}
} // namespace sp