Class Window

Inheritance Relationships

Derived Type

Class Documentation

class Window

Subclassed by Azura::GLFWWindow

Public Functions

virtual ~Window()
Window(String title, U32 width, U32 height)
const void *GetHandle() const
Window(const Window &other)
Window(Window &&other)
Window &operator=(const Window &other)
Window &operator=(Window &&other)
virtual bool Initialize() = 0
virtual void StartListening() = 0
void SetUpdateCallback(std::function<void(float)> eventUpdate)
void SetMouseEventCallback(std::function<void(MouseEvent)> eventFunc)
void SetKeyEventCallback(std::function<void(KeyEvent)> eventFunc)
virtual void Destroy() = 0
virtual void SetCursorState(CursorState state) = 0
virtual void ResetCursor() = 0
ViewportDimensions GetViewport() const
void SetUpdateRate(UpdateRate rate)
SwapChainRequirements GetSwapChainRequirements() const
U32 GetWidth() const
U32 GetHeight() const

Protected Functions

void SetHandle(void *window)
const char *GetTitle() const
void CallUpdateFunction(float timeDelta) const
void CallMouseEventFunction(MouseEvent e) const
void CallKeyEventFunction(KeyEvent e) const

Protected Attributes

Log log_Window
float m_midWidth
float m_midHeight
UpdateRate m_rate