From 7f0440cc25fc3ebc711df9fb708a5bffe53bf784 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Mon, 22 May 2023 00:37:33 +0200 Subject: c++: Initial setup for regular window creation --- src/window/device.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/window/device.h (limited to 'src/window/device.h') diff --git a/src/window/device.h b/src/window/device.h new file mode 100644 index 0000000..70a388e --- /dev/null +++ b/src/window/device.h @@ -0,0 +1,23 @@ +#pragma once + +#include +#include + +#include +#include + +#include "window.h" + +namespace saw { +class device { +public: + virtual ~device() = default; + + virtual own create_window(const video_mode &mode, + std::string_view title_view) = 0; + virtual void flush() = 0; +}; + +class io_provider; +own create_device(io_provider &provider); +} // namespace saw -- cgit v1.2.3