void FFGLExtensions::Initialize() { #ifdef _WIN32 InitWGLEXTSwapControl(); #endif InitMultitexture(); InitARBShaderObjects(); InitEXTFramebufferObject(); }
void glWindow::RecreateGLContext () { // Delete existing context KillGLContext (); // Create main context if (!(m_HGLRC=wglCreateContext(m_HDC))) // Are We Able To Get A Rendering Context? { SetError ("Could not create OpenGL rendering context"); return; } if(!wglMakeCurrent(m_HDC,m_HGLRC)) // Try To Activate The Rendering Context { SetError ("Could not activate OpenGL rendering context"); return; } // Multitexture extension pointers may not be valid anymore, so re-fetch them InitMultitexture (); // Setup OpenGL defaults OpenGLDefaults (); }