Files
window-starter/src/window.h
McMassiveNZ 908c5440d3 Abstracted Window
+ Pure Virtual Window class
+ Win32 Impl
* TODO: do something about the while(window->PumpMessages())
2023-05-03 22:16:33 +02:00

27 lines
346 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 bool PumpMessages() = 0;
};
}
std::unique_ptr<starter_window::Window> swCreateWindow(starter_window::WindowCreateParams params);