28 lines
401 B
C++
28 lines
401 B
C++
|
|
#include <Spectre/Window/Window.h>
|
|
#include "PlatformWindow.h"
|
|
|
|
namespace sp {
|
|
|
|
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
|