summaryrefslogtreecommitdiff
path: root/deimos/core/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'deimos/core/os.h')
-rw-r--r--deimos/core/os.h8
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