Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualrocklobster

Posted 08 October 2012 - 10:23 PM

I think you can specify the context you want to use with your window creation library. I think for SDL it's something like
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);

For GLFW i think they have some flags you can set when you open the window using

glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3);

#2rocklobster

Posted 08 October 2012 - 10:23 PM

I think you can specify the context you want to your window creation library. I think for SDL it's something like
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);

For GLFW i think they have some flags you can set when you open the window using

glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3);

#1rocklobster

Posted 08 October 2012 - 10:22 PM

I think you can specify the context you want to your window creation library. I think for SDL it's something like
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);

For GLFW i think they have some flags you can set when you open the window using

GLFW_OPENGL_VERSION_MAJOR and
GLFW_OPENGL_VERSION_MINOR

PARTNERS