#include #include "PlatformWindow.h" #ifdef SPECTRE_PLATFORM_WIN #include typedef sp::Win32Window WindowType; #elif SPECTRE_PLATFORM_UNIX #include typedef sp::X11Window WindowType; #else #error "No Window implementation exists" #endif namespace sp { PlatformWindow* PlatformWindow::make(Window* owner) { return new WindowType(owner); } PlatformWindow::PlatformWindow(Window* owner) : m_owner (owner) { } PlatformWindow::~PlatformWindow() { // Nothing to do. } Window* PlatformWindow::getOwner() { return m_owner; } void PlatformWindow::onReshape(int width, int height) { // Forward to parent. m_owner->onReshape(width, height); } } // namespace sp