diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-01 22:11:54 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-01 22:11:54 +0200 |
commit | a3fdb87df94f8d377b7ea90ca50a06418fda3867 (patch) | |
tree | 61bd8721273ccae6e8a55d78d762562e63997b93 /deimos/core/os.h | |
parent | 84062873e162bc4a7c799fb67f72dbd055eb15ca (diff) |
Open window & basic lifetime
Diffstat (limited to 'deimos/core/os.h')
-rw-r--r-- | deimos/core/os.h | 8 |
1 files changed, 6 insertions, 2 deletions
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<gsl::owner<OsWindowHandle*>> Create(gsl::czstring title, int32_t width, int32_t height) = 0;
+ virtual StatusOr<gsl::owner<OsWindow*>> Create(gsl::czstring title, int32_t width, int32_t height) = 0;
+
+ virtual void Update(OsWindow*) = 0;
+
+ virtual bool QuitRequested(const OsWindow*) = 0;
};
class OsApi
|