1
0
Fork 0

source/Platform/Unix: stub implementation

This commit is contained in:
Henrik Hautakoski 2019-06-01 01:13:44 +02:00
parent b0d14b91e0
commit 38d333862a
20 changed files with 498 additions and 2 deletions

View file

@ -4,17 +4,27 @@
#include <Spectre/Game/FPSCounter.h>
#include <Spectre/Input/InputModule.h>
#include <Spectre/System/MessageHandler.h>
#include <Spectre/Game.h>
#include <Platform/PlatformMisc.h>
// TODO: move this to Application::create()
#ifdef _WIN32
#include <Platform/Win32/Win32Application.h>
#include <Spectre/Game.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 {
Game::Game() :
m_running(false)
{
m_platform = new Win32Application();
m_platform = new ApplicationType();
m_graphics = new Graphics(m_platform);
m_input = new InputModule(&m_platform->getInput());
m_messageHandler = new MessageHandler();