예제 #1
0
파일: context.hpp 프로젝트: Rapptz/gum
 int make_current(window& w) const {
     return SDL_GL_MakeCurrent(w.data(), gl_context);
 }
예제 #2
0
파일: context.hpp 프로젝트: Rapptz/gum
 explicit context(window& w) noexcept: gl_context(SDL_GL_CreateContext(w.data())) {}