mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Updated example and test programs to new API.
This commit is contained in:
+1
-2
@@ -331,7 +331,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
glfwOpenWindowHint(GLFW_DEPTH_BITS, 16);
|
||||
|
||||
window = glfwOpenWindow( 300, 300, GLFW_WINDOWED );
|
||||
window = glfwOpenWindow( 300, 300, GLFW_WINDOWED, "Gears" );
|
||||
if (!window)
|
||||
{
|
||||
fprintf( stderr, "Failed to open GLFW window\n" );
|
||||
@@ -339,7 +339,6 @@ int main(int argc, char *argv[])
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
glfwSetWindowTitle( window, "Gears" );
|
||||
glfwEnable( window, GLFW_KEY_REPEAT );
|
||||
glfwSwapInterval( 1 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user