1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Formatting.

This commit is contained in:
Camilla Berglund 2010-10-24 15:42:07 +02:00
parent 64abfb5ece
commit 868176721c

View File

@ -17,10 +17,10 @@
#define M_PI 3.1415926535897932384626433832795 #define M_PI 3.1415926535897932384626433832795
#endif #endif
/* Maximum delta T to allow for differential calculations */ // Maximum delta T to allow for differential calculations
#define MAX_DELTA_T 0.01 #define MAX_DELTA_T 0.01
/* Animation speed (10.0 looks good) */ // Animation speed (10.0 looks good)
#define ANIMATION_SPEED 10.0 #define ANIMATION_SPEED 10.0
GLfloat alpha = 210.f, beta = -70.f; GLfloat alpha = 210.f, beta = -70.f;
@ -91,7 +91,6 @@ void init_vertices(void)
{ {
p = 4 * (y * QUADW + x); p = 4 * (y * QUADW + x);
/* first quad */
quad[p + 0] = y * GRIDW + x; // Some point quad[p + 0] = y * GRIDW + x; // Some point
quad[p + 1] = y * GRIDW + x + 1; // Neighbor at the right side quad[p + 1] = y * GRIDW + x + 1; // Neighbor at the right side
quad[p + 2] = (y + 1) * GRIDW + x + 1; // Upper right neighbor quad[p + 2] = (y + 1) * GRIDW + x + 1; // Upper right neighbor
@ -286,7 +285,7 @@ void handle_key_down(GLFWwindow window, int key, int action)
zoom -= 1; zoom -= 1;
break; break;
case GLFW_KEY_PAGEDOWN: case GLFW_KEY_PAGEDOWN:
zoom+=1; zoom += 1;
break; break;
default: default:
break; break;