MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / MakeContextCurrent

Method MakeContextCurrent

Source/Engine/StratusGraphicsDriver.cpp:193–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 void GraphicsDriver::MakeContextCurrent() {
194 SDL_Window* window = (SDL_Window*)Window::Instance()->GetWindowObject();
195 SDL_GL_MakeCurrent(window, GetContext().context);
196 }
197
198 void GraphicsDriver::SwapBuffers(const bool vsync) {
199 if (!vsync) {

Callers

nothing calls this directly

Calls 1

GetWindowObjectMethod · 0.80

Tested by

no test coverage detected