Skip to content

Commit

Permalink
GetNativeWindow function exposing m_Window
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Sep 23, 2021
1 parent 73f020e commit 8196eac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Ember/src/Ember/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ namespace Ember {
virtual void SetVSync(bool enabled) = 0;
virtual bool IsVSync() const = 0;

virtual void* GetNativeWindow() const = 0;

static Window* Create(const WindowProps& props = WindowProps());
};
}
4 changes: 3 additions & 1 deletion Ember/src/Platform/Windows/WindowsWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ namespace Ember {
// Window attributes
inline void SetEventCallback(const EventCallbackFn& callback) override { m_Data.EventCallback = callback; }
void SetVSync(bool enabled) override;
bool IsVSync() const override;
bool IsVSync() const override;

inline virtual void* GetNativeWindow() const { return m_Window; }
private:
virtual void Init(const WindowProps& props);
virtual void ShutDown();
Expand Down

0 comments on commit 8196eac

Please sign in to comment.