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