
#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::get()
{
	static ApplicationImpl inst;
	return &inst;
}

} // namespace sp
