generated from McMassiveNZ/opengl-starter
- Removed OpenGL stuff and replaced/stubbed things with dx12 - Removed .github actions stuff as we are now on gitea and wont be using it
29 lines
443 B
C++
29 lines
443 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace dx12_starter
|
|
{
|
|
|
|
struct DeviceCreateParams
|
|
{
|
|
void* nativeWindowHandle;
|
|
int versionMajor;
|
|
int versionMinor;
|
|
};
|
|
|
|
class IDevice
|
|
{
|
|
public:
|
|
virtual ~IDevice() = default;
|
|
|
|
virtual void ClearBuffers() = 0;
|
|
virtual void Present() = 0;
|
|
virtual void DrawScene() = 0;
|
|
virtual void Destroy() = 0;
|
|
|
|
static std::unique_ptr<IDevice> Create(const DeviceCreateParams& params);
|
|
};
|
|
|
|
} // namespace dx12_starter
|