Files
window-starter/src/window.h
McMassiveNZ d4dc5fb2f1 Update ReadMe and add ShouldClose() function
- Removed all references to blank-slate
+ added a ShouldClose() function which gets polled to see if the window should close
2023-05-04 20:39:25 +02:00

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);