21 lines
449 B
C++
21 lines
449 B
C++
|
|
#include "PlatformApplication.h"
|
|
|
|
#ifdef SPECTRE_PLATFORM_WIN
|
|
#include <Platform/Win32/Win32Application.h>
|
|
typedef sp::Win32Application ApplicationImpl;
|
|
#elif SPECTRE_PLATFORM_UNIX
|
|
#include <Platform/Unix/UnixApplication.h>
|
|
typedef sp::UnixApplication ApplicationImpl;
|
|
#else
|
|
#error "No Application implementation exists"
|
|
#endif
|
|
|
|
namespace sp {
|
|
|
|
PlatformApplication* PlatformApplication::create()
|
|
{
|
|
return new ApplicationImpl;
|
|
}
|
|
|
|
} // namespace sp
|