Re:SDL 2.0.0 is out after many years in development
by wtallis on Tuesday August 13, 2013 @12:31PM
(#6206706)
That doesn't show that GLFW is simpler than SDL. It just shows that GLFW has some simple defaults. How much complexity is added to the GLFW code if you want to require a minimum GL version and depth buffer size? Or a fulllscreen window?
[ Parent
| on HN ]
Re:SDL 2.0.0 is out after many years in development
by angersock on Tuesday August 13, 2013 @01:38PM
(#6207053)
Sure. Fullscreen mode:
window = glfwCreateWindow(640, 480, "Hello World", glfwGetPrimaryMonitor(), NULL);
Requesting a specific version with a particular depth: glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);
glfwOpenWindowHint(GLFW_DEPTH_BIT, 24);
There you go.