Abstracted Window
+ Pure Virtual Window class + Win32 Impl * TODO: do something about the while(window->PumpMessages())
This commit is contained in:
26
src/window.h
Normal file
26
src/window.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user