MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / MarkActive

Method MarkActive

ZEngine/src/GlfwWindow/OpenGLContext.cpp:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4namespace ZEngine::Rendering::Graphics::GLFWGraphic {
5 void OpenGLContext::MarkActive() {
6 auto native_window = static_cast<GLFWwindow*>(m_window->GetNativeWindow());
7 if (native_window != nullptr) {
8 glfwMakeContextCurrent(native_window);
9 }
10 }
11} // namespace ZEngine::Rendering::Graphics::GLFWGraphic

Callers 1

Calls 1

GetNativeWindowMethod · 0.45

Tested by

no test coverage detected