An implementation of VulkanEngine::Window which uses the GLFW library.
More...
#include <GLFWWindow.h>
|
| void | mousePositionCallback (double xpos, double ypos) |
| |
| void | mouseScrollCallback (double xoffset, double yoffset) |
| |
|
void | mouseButtonPressedCallback (bool left_pressed, bool right_pressed, bool middle_pressed) |
| | Callback which gets the current status of mouse buttons.
|
| |
|
void | keyboardButtonPressedCallback (int scancode, const KeyboardInput::KeyInfo &key_info) |
| |
|
uint32_t | width |
| | The current width of the window.
|
| |
|
uint32_t | height |
| | The current height of the window.
|
| |
|
uint32_t | framebuffer_width |
| | The width of the window's framebuffer.
|
| |
|
uint32_t | framebuffer_height |
| | The height of the window's framebuffer.
|
| |
|
std::string | title |
| | The title of the window.
|
| |
|
bool | full_screen |
| | Whether or not the window is set to full screen.
|
| |
| bool | size_changed |
| |
|
std::shared_ptr< MouseInput > | mouse_input |
| | The MouseInput instance connected to this Window.
|
| |
|
std::shared_ptr< KeyboardInput > | keyboard_input |
| | The KeyboardInput instance connect to this Window.
|
| |
An implementation of VulkanEngine::Window which uses the GLFW library.
◆ GLFWWindow()
| VulkanEngine::GLFWWindow::GLFWWindow |
( |
int |
_width, |
|
|
int |
_height, |
|
|
const std::string & |
_title, |
|
|
bool |
_full_screen |
|
) |
| |
Contructor.
- Parameters
-
| _width | The desired initial width of the window. |
| _height | The desired initial height of the window. |
| _title | The title of the window. |
| _full_screen | If true the window will be initialized to full screen. |
◆ getRequiredVulkanInstanceExtensions()
| const std::vector< const char * > VulkanEngine::GLFWWindow::getRequiredVulkanInstanceExtensions |
( |
| ) |
const |
|
virtual |
◆ getVkSurface()
| vk::SurfaceKHR VulkanEngine::GLFWWindow::getVkSurface |
( |
| ) |
|
|
virtual |
Get the Vulkan surface defined for this window.
- Returns
- The vk::SurfaceKHR.
Implements VulkanEngine::Window.
◆ initialize()
| bool VulkanEngine::GLFWWindow::initialize |
( |
bool |
invisible = false | ) |
|
|
virtual |
Initialize the window.
- Parameters
-
| invisible | If set to true the window will be invisible. |
- Returns
- True if initialization succeded without error.
Implements VulkanEngine::Window.
◆ setHeight()
| void VulkanEngine::GLFWWindow::setHeight |
( |
uint32_t |
_height | ) |
|
|
virtual |
Sets the height of the window.
- Parameters
-
| _height | The height value to set. |
Reimplemented from VulkanEngine::Window.
◆ setTitle()
| void VulkanEngine::GLFWWindow::setTitle |
( |
const std::string & |
new_title | ) |
|
|
virtual |
Set window title.
- Parameters
-
| new_title | The new window title. |
Reimplemented from VulkanEngine::Window.
◆ setWidth()
| void VulkanEngine::GLFWWindow::setWidth |
( |
uint32_t |
_width | ) |
|
|
virtual |
Sets the width of the window.
- Parameters
-
| _width | The width value to set. |
Reimplemented from VulkanEngine::Window.
◆ shouldClose()
| bool VulkanEngine::GLFWWindow::shouldClose |
( |
| ) |
|
|
virtual |
◆ update()
| void VulkanEngine::GLFWWindow::update |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: