diff --git a/.clang-format b/.clang-format index 2a1d19a..c89e01a 100644 --- a/.clang-format +++ b/.clang-format @@ -3,6 +3,8 @@ AlignConsecutiveMacros: true AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true BasedOnStyle: LLVM +BinPackArguments: false +BinPackParameters: false IndentCaseLabels: true IndentGotoLabels: true IndentPPDirectives: BeforeHash diff --git a/glxgears.c b/glxgears.c index 8ca74bf..ea6697a 100644 --- a/glxgears.c +++ b/glxgears.c @@ -39,7 +39,10 @@ static GLfloat viewDist = 40.0; **/ static void gear( - GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, + GLfloat inner_radius, + GLfloat outer_radius, + GLfloat width, + GLint teeth, GLfloat tooth_depth ) { GLint i; @@ -320,7 +323,8 @@ static void init(int argc, char *argv[]) { gear1 = glGenLists(1); glNewList(gear1, GL_COMPILE); glMaterialfv( - GL_FRONT, GL_AMBIENT_AND_DIFFUSE, + GL_FRONT, + GL_AMBIENT_AND_DIFFUSE, (const GLfloat[]){245.0 / 255, 169.0 / 255, 184.0 / 255, 1} ); gear(1.0, 4.0, 1.0, 20, 0.7); @@ -335,7 +339,8 @@ static void init(int argc, char *argv[]) { gear3 = glGenLists(1); glNewList(gear3, GL_COMPILE); glMaterialfv( - GL_FRONT, GL_AMBIENT_AND_DIFFUSE, + GL_FRONT, + GL_AMBIENT_AND_DIFFUSE, (const GLfloat[]){91.0 / 255, 206.0 / 255, 250.0 / 255, 1} ); gear(1.3, 2.0, 0.5, 10, 0.7);