From f86565c90e8351ad271b6caaed9d234ab0e069cf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 30 Apr 2011 13:58:31 +0000 Subject: whitespace edits for bpy api, split some really long lines. --- intern/ghost/test/gears/GHOST_C-Test.c | 88 +++++++++++++++++----------------- 1 file changed, 44 insertions(+), 44 deletions(-) (limited to 'intern') diff --git a/intern/ghost/test/gears/GHOST_C-Test.c b/intern/ghost/test/gears/GHOST_C-Test.c index e8e818abca7..b34a37132b6 100644 --- a/intern/ghost/test/gears/GHOST_C-Test.c +++ b/intern/ghost/test/gears/GHOST_C-Test.c @@ -83,71 +83,71 @@ static void testTimerProc(GHOST_TimerTaskHandle task, GHOST_TUns64 time) static void gearGL(GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, GLfloat tooth_depth) { GLint i; - GLfloat r0, r1, r2; - GLfloat angle, da; - GLfloat u, v, len; + GLfloat r0, r1, r2; + GLfloat angle, da; + GLfloat u, v, len; const double pi = 3.14159264; - r0 = inner_radius; - r1 = (float)(outer_radius - tooth_depth/2.0); - r2 = (float)(outer_radius + tooth_depth/2.0); + r0 = inner_radius; + r1 = (float)(outer_radius - tooth_depth/2.0); + r2 = (float)(outer_radius + tooth_depth/2.0); - da = (float)(2.0*pi / teeth / 4.0); + da = (float)(2.0*pi / teeth / 4.0); - glShadeModel(GL_FLAT); - glNormal3f(0.0, 0.0, 1.0); + glShadeModel(GL_FLAT); + glNormal3f(0.0, 0.0, 1.0); - /* draw front face */ - glBegin(GL_QUAD_STRIP); - for (i=0;i<=teeth;i++) { + /* draw front face */ + glBegin(GL_QUAD_STRIP); + for (i=0;i<=teeth;i++) { angle = (float)(i * 2.0*pi / teeth); glVertex3f((float)(r0*cos(angle)), (float)(r0*sin(angle)), (float)(width*0.5)); glVertex3f((float)(r1*cos(angle)), (float)(r1*sin(angle)), (float)(width*0.5)); glVertex3f((float)(r0*cos(angle)), (float)(r0*sin(angle)), (float)(width*0.5)); glVertex3f((float)(r1*cos(angle+3*da)), (float)(r1*sin(angle+3*da)), (float)(width*0.5)); - } - glEnd(); + } + glEnd(); - /* draw front sides of teeth */ - glBegin(GL_QUADS); - da = (float)(2.0*pi / teeth / 4.0); - for (i=0;i