MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ terminate()

void MayaFlux::Core::GLFWSingleton::terminate ( )
static

Terminates the GLFW library if initialized and no windows remain.

Calls glfwTerminate() only if GLFW was previously initialized and all tracked windows have been destroyed. Resets the initialization state.

Definition at line 85 of file GlfwSingleton.cpp.

86{
87 if (s_initialized && s_window_count == 0) {
88 glfwTerminate();
89 s_initialized = false;
90 }
91}
static uint32_t s_window_count
Number of currently active GLFW windows.
static bool s_initialized
Tracks whether GLFW has been initialized.

References s_initialized, and s_window_count.

Referenced by MayaFlux::Core::GlfwWindow::~GlfwWindow(), and MayaFlux::Core::WindowManager::~WindowManager().

+ Here is the caller graph for this function: