Updated example and test programs to new API.

This commit is contained in:
Camilla Berglund
2010-09-14 03:10:59 +02:00
parent 0f80e066ea
commit e244ad3d41
15 changed files with 17 additions and 48 deletions
+1 -3
View File
@@ -23,7 +23,7 @@ int main( void )
}
// Open a window and create its OpenGL context
window = glfwOpenWindow( 640, 480, GLFW_WINDOWED );
window = glfwOpenWindow( 640, 480, GLFW_WINDOWED, "Spinning Triangle" );
if (!window)
{
fprintf( stderr, "Failed to open GLFW window\n" );
@@ -32,8 +32,6 @@ int main( void )
exit( EXIT_FAILURE );
}
glfwSetWindowTitle( window, "Spinning Triangle" );
// Ensure we can capture the escape key being pressed below
glfwEnable( window, GLFW_STICKY_KEYS );