void GameWindow::create_window(RenderContext& context) { context.setup_context(); #ifdef EMSCRIPTEN l_DisplayScreen = SDL_SetVideoMode( width, height, 32, SDL_ANYFORMAT | SDL_OPENGL); #elif DEUTERIUM_PC _handle = SDL_CreateWindow("", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1, 1, SDL_WINDOW_OPENGL); if (_handle == nullptr) { std::cout << "SDL_CreateWindow Error:" << SDL_GetError() << std::endl; } #endif context.create_context(_handle); this->_render_context = context; GLenum err = glewInit(); }