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

Method MarkActive

ZEngine/src/SDL2Window/OpenGLContext.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4namespace ZEngine::Rendering::Graphics::SDLGraphic {
5 void OpenGLContext::MarkActive() {
6
7 auto native_window = static_cast<SDL_Window*> (m_window->GetNativeWindow());
8 if (native_window != nullptr) {
9 SDL_GL_MakeCurrent(native_window, m_native_context);
10 }
11 }
12}
13

Callers 1

Calls 1

GetNativeWindowMethod · 0.45

Tested by

no test coverage detected