generated from McMassiveNZ/opengl-starter
First pass removing OpenGL stuff and converting to dx12
- Removed OpenGL stuff and replaced/stubbed things with dx12 - Removed .github actions stuff as we are now on gitea and wont be using it
This commit is contained in:
29
include/window.h
Normal file
29
include/window.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace dx12_starter
|
||||
{
|
||||
|
||||
struct WindowCreateParams
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
const char* name;
|
||||
};
|
||||
|
||||
class IWindow
|
||||
{
|
||||
public:
|
||||
virtual ~IWindow() = default;
|
||||
|
||||
virtual void PumpMessages() = 0;
|
||||
virtual bool IsOpen() const = 0;
|
||||
virtual void* GetNativeHandle() const = 0;
|
||||
|
||||
static std::unique_ptr<IWindow> Create(WindowCreateParams params);
|
||||
};
|
||||
|
||||
} // namespace starter_window
|
||||
Reference in New Issue
Block a user