From a2a1913316fd815e9cfb096cfebd6e0dc9ffa1e5 Mon Sep 17 00:00:00 2001 From: qtkite Date: Sun, 15 Aug 2021 15:35:45 +1000 Subject: [PATCH] dx11 template functions --- src/defender-control/gui_dx11.cpp | 25 +++++++++++++++++++++++++ src/defender-control/gui_dx11.hpp | 11 ++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/defender-control/gui_dx11.cpp b/src/defender-control/gui_dx11.cpp index 08d8306..db52903 100644 --- a/src/defender-control/gui_dx11.cpp +++ b/src/defender-control/gui_dx11.cpp @@ -2,5 +2,30 @@ namespace gui::dx11 { + bool create_device(HWND hwnd) + { + // Setup a swapchain + return false; + } + + void cleanup() + { + } + + void setup(HWND hwnd) + { + } + + void start() + { + } + + void end() + { + } + + void resize() + { + } } \ No newline at end of file diff --git a/src/defender-control/gui_dx11.hpp b/src/defender-control/gui_dx11.hpp index f4f21bd..bb3cd45 100644 --- a/src/defender-control/gui_dx11.hpp +++ b/src/defender-control/gui_dx11.hpp @@ -1,9 +1,18 @@ #pragma once #include - +#include +#include #include namespace gui::dx11 { + bool create_device(HWND hwnd); + void cleanup(); + void setup(HWND hwnd); + void start(); + void end(); + + // resize here: + void resize(); }