|
luna engine
software engine
|
#include <windowsWindow.h>


Classes | |
| struct | windowData |
Public Member Functions | |
| windowsWindow (const vulkan::windowSpec &windowData) | |
| creates a windows window. More... | |
| virtual | ~windowsWindow () |
| void | onUpdate () override |
| polls all the window and input events. More... | |
| uint32_t | getWidth () const override |
| returs the current width of the window. More... | |
| uint32_t | getHeight () const override |
| return the current height of the window. More... | |
| void | setEventCallBack (const eventCallbackFn &callback) override |
| set the window event callback function. More... | |
| void * | getWindow () override |
| returns the GLFW window pointer. More... | |
| virtual glm::vec2 | getCursorPos () const override |
| returns the current cursor pos. More... | |
Public Member Functions inherited from luna::vulkan::window | |
| virtual | ~window () |
| virtual void | onUpdate ()=0 |
| virtual uint32_t | getWidth () const =0 |
| virtual uint32_t | getHeight () const =0 |
| virtual void | setEventCallBack (const eventCallbackFn &callback)=0 |
| virtual void * | getWindow ()=0 |
| virtual glm::vec2 | getCursorPos () const =0 |
Private Member Functions | |
| virtual void | init (const vulkan::windowSpec &windowInfo) |
| virtual void | shutDown () |
| shutsdown the window and GLFW. More... | |
Private Attributes | |
| GLFWwindow * | _window |
| windowData | mData |
Additional Inherited Members | |
Public Types inherited from luna::vulkan::window | |
| using | eventCallbackFn = std::function< void(Event &)> |
Static Public Member Functions inherited from luna::vulkan::window | |
| static window * | windowCreate (const windowSpec &WindowSpec=windowSpec::windowSpec()) |
Public Attributes inherited from luna::vulkan::window | |
| windowSpec | windowSpec |
Static Public Attributes inherited from luna::vulkan::window | |
| static Api | graphicsApi = Api::VULKAN |
| luna::vulkan::windowsWindow::windowsWindow | ( | const vulkan::windowSpec & | windowData | ) |
creates a windows window.
| windowData | windowSpec struct with the window data |
|
virtual |
|
overridevirtual |
|
inlineoverridevirtual |
return the current height of the window.
Implements luna::vulkan::window.
|
inlineoverridevirtual |
returs the current width of the window.
Implements luna::vulkan::window.
|
inlineoverridevirtual |
|
privatevirtual |
initializes the window and also GLFW if need be.
| windowInfo |
|
overridevirtual |
polls all the window and input events.
Implements luna::vulkan::window.
|
inlineoverridevirtual |
set the window event callback function.
Implements luna::vulkan::window.
|
privatevirtual |
shutsdown the window and GLFW.
|
private |
|
private |