mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 04:44:54 +00:00
Updated example and test programs to new API.
This commit is contained in:
+1
-3
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user