This object stores any information regarding the created GLFW window.
More...
#include <Window.hpp>
|
| bool | ShouldClose () const noexcept |
| | This method returns if this window should close. More...
|
| |
| void | SetShouldClose (bool value) const noexcept |
| | This method allows you to close the window. More...
|
| |
| HWND | GetWindowHandle () const noexcept |
| | The hardware handle to this window. More...
|
| |
| eastl::weak_ptr< GLFWwindow > | GetGLFWWindow () const noexcept |
| | Allows you to get the glfw pointer. More...
|
| |
| eastl::string | GetTitle () const |
| | This method allows you to get the title of this window. More...
|
| |
| int | GetWidth () const noexcept |
| | This method allows you to get the width of this window. More...
|
| |
| int | GetDisplayWidth () const noexcept |
| | This method allows you to get the display width of this window. More...
|
| |
| int | GetHeight () const noexcept |
| | This method allows you to get the height of this window. More...
|
| |
| int | GetDisplayHeight () const noexcept |
| | This method allows you to get the display height of this window. More...
|
| |
| virtual | ~Window () noexcept |
| |
This object stores any information regarding the created GLFW window.
Definition at line 28 of file Window.hpp.
| Engine::Window::~Window |
( |
| ) |
|
|
virtualnoexcept |
| int Engine::Window::GetDisplayHeight |
( |
| ) |
const |
|
noexcept |
This method allows you to get the display height of this window.
- Returns
- Returns the display height of this window as an int.
Definition at line 96 of file Window.cpp.
| int Engine::Window::GetDisplayWidth |
( |
| ) |
const |
|
noexcept |
This method allows you to get the display width of this window.
- Returns
- Returns the display width of this window as an int.
Definition at line 86 of file Window.cpp.
| eastl::weak_ptr< GLFWwindow > Engine::Window::GetGLFWWindow |
( |
| ) |
const |
|
noexcept |
Allows you to get the glfw pointer.
- Returns
- Returns the glfw pointer as a weak pointer.
Definition at line 71 of file Window.cpp.
| int Engine::Window::GetHeight |
( |
| ) |
const |
|
noexcept |
This method allows you to get the height of this window.
- Returns
- Returns the height of this window as an int.
Definition at line 91 of file Window.cpp.
| eastl::string Engine::Window::GetTitle |
( |
| ) |
const |
This method allows you to get the title of this window.
- Returns
- Returns the title of this window as a std::string
Definition at line 76 of file Window.cpp.
| int Engine::Window::GetWidth |
( |
| ) |
const |
|
noexcept |
This method allows you to get the width of this window.
- Returns
- Returns the width of this window as an int.
Definition at line 81 of file Window.cpp.
| HWND Engine::Window::GetWindowHandle |
( |
| ) |
const |
|
noexcept |
The hardware handle to this window.
- Returns
- Returns the hardware handle to this window as a HWND.
Definition at line 66 of file Window.cpp.
| void Engine::Window::OnWindowResized |
( |
GLFWwindow * |
window, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
This method is called whenever the GLFW window is resized.
- Parameters
-
| window | This is a reference to the window pointer. |
| width | The new width. |
| height | The new height. |
Definition at line 29 of file Window.cpp.
| void Engine::Window::SetShouldClose |
( |
bool |
value | ) |
const |
|
noexcept |
This method allows you to close the window.
- Parameters
-
| value | Use true to close this window, false to do nothing. |
- Returns
Definition at line 60 of file Window.cpp.
| bool Engine::Window::ShouldClose |
( |
| ) |
const |
|
noexcept |
This method returns if this window should close.
- Returns
- Returns true if this window should close, will return false otherwise.
Definition at line 53 of file Window.cpp.
| int Engine::Window::displayHeight |
|
protected |
| int Engine::Window::displayWidth |
|
protected |
| int Engine::Window::height |
|
protected |
| eastl::string Engine::Window::title |
|
protected |
| int Engine::Window::width |
|
protected |
| eastl::shared_ptr<GLFWwindow> Engine::Window::window |
|
protected |
The documentation for this class was generated from the following files: