1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-22 18:28:52 -05:00

Formatting.

This commit is contained in:
Camilla Berglund 2010-10-24 15:50:39 +02:00
parent 868176721c
commit 1231bf031b

View File

@ -255,7 +255,7 @@ void calc_grid(void)
// Handle key strokes
//========================================================================
void handle_key_down(GLFWwindow window, int key, int action)
void key_callback(GLFWwindow window, int key, int action)
{
if (action != GLFW_PRESS)
return;
@ -297,7 +297,7 @@ void handle_key_down(GLFWwindow window, int key, int action)
// Callback function for window resize events
//========================================================================
void handle_resize(GLFWwindow window, int width, int height)
void window_resize_callback(GLFWwindow window, int width, int height)
{
float ratio = 1.f;
@ -339,11 +339,11 @@ int main(int argc, char* argv[])
glfwSwapInterval(1);
// Keyboard handler
glfwSetKeyCallback(window, handle_key_down);
glfwSetKeyCallback(window, key_callback);
glfwEnable(window, GLFW_KEY_REPEAT);
// Window resize handler
glfwSetWindowSizeCallback(window, handle_resize);
glfwSetWindowSizeCallback(window, window_resize_callback);
// Initialize OpenGL
init_opengl();