From a3fdb87df94f8d377b7ea90ca50a06418fda3867 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 1 May 2024 22:11:54 +0200 Subject: Open window & basic lifetime --- deimos/core/os.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'deimos/core/os.h') diff --git a/deimos/core/os.h b/deimos/core/os.h index ecbe3cd..c440555 100644 --- a/deimos/core/os.h +++ b/deimos/core/os.h @@ -50,7 +50,7 @@ public: virtual void Commit(void* ptr, int64_t size) = 0; }; -struct OsWindowHandle; +struct OsWindow; class OsWindowApi { @@ -59,7 +59,11 @@ public: deimos_NO_COPY_MOVE(OsWindowApi); virtual ~OsWindowApi() = default; - virtual StatusOr> Create(gsl::czstring title, int32_t width, int32_t height) = 0; + virtual StatusOr> Create(gsl::czstring title, int32_t width, int32_t height) = 0; + + virtual void Update(OsWindow*) = 0; + + virtual bool QuitRequested(const OsWindow*) = 0; }; class OsApi -- cgit