- Removed all references to blank-slate + added a ShouldClose() function which gets polled to see if the window should close
28 lines
379 B
C++
28 lines
379 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace starter_window
|
|
{
|
|
|
|
struct WindowCreateParams
|
|
{
|
|
int x;
|
|
int y;
|
|
int width;
|
|
int height;
|
|
const char* name;
|
|
};
|
|
|
|
class Window
|
|
{
|
|
public:
|
|
virtual ~Window() = default;
|
|
virtual void PumpMessages() = 0;
|
|
virtual bool ShouldClose() = 0;
|
|
};
|
|
|
|
}
|
|
|
|
std::unique_ptr<starter_window::Window> swCreateWindow(starter_window::WindowCreateParams params);
|