A simple class for creating and interacting with windows, using the GLFW library.
More...
#include <WindowManager.hpp>
Note: Only one instance of this class can be alive at any given time.
All windows, which were not manually destroyed using the WindowManager::DestroyWindow method, will be automatically destroyed along with the WindowManager object when it gets deleted.
◆ SwapStrategy
Enumerator |
---|
disable_vsync | |
enable_vsync | |
late_swap_tearing | |
◆ WindowManager()
WindowManager::WindowManager |
( |
| ) |
|
◆ ~WindowManager()
WindowManager::~WindowManager |
( |
| ) |
|
◆ CreateGLFWWindow()
◆ DestroyWindow()
void WindowManager::DestroyWindow |
( |
GLFWwindow *const |
window | ) |
|
◆ NewImGuiFrame()
void WindowManager::NewImGuiFrame |
( |
| ) |
|
◆ RenderImGuiFrame()
void WindowManager::RenderImGuiFrame |
( |
bool |
show_gui | ) |
|
◆ ToggleFullscreenStatusForWindow()
void WindowManager::ToggleFullscreenStatusForWindow |
( |
GLFWwindow *const |
window | ) |
|
|
noexcept |
◆ mMutex
std::mutex WindowManager::mMutex |
|
staticprivate |
◆ mWindowData
std::unordered_map<GLFWwindow*, std::unique_ptr<WindowDatum> > WindowManager::mWindowData |
|
private |
The documentation for this class was generated from the following files: