Exemple #1
0
 int make_current(window& w) const {
     return SDL_GL_MakeCurrent(w.data(), gl_context);
 }
Exemple #2
0
 explicit context(window& w) noexcept: gl_context(SDL_GL_CreateContext(w.data())) {}