1
0
Fork 0
spectre/source/Platform/PlatformApplication.cpp

27 lines
544 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::get()
{
static ApplicationImpl inst;
return &inst;
}
MessageQueue& PlatformApplication::getMessageQueue()
{
return m_messageQueue;
}
} // namespace sp