disabled bin packing
This commit is contained in:
parent
1e47f29c8e
commit
5cd3159c40
@ -3,6 +3,8 @@ AlignConsecutiveMacros: true
|
|||||||
AllowShortIfStatementsOnASingleLine: true
|
AllowShortIfStatementsOnASingleLine: true
|
||||||
AllowShortLoopsOnASingleLine: true
|
AllowShortLoopsOnASingleLine: true
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
|
BinPackArguments: false
|
||||||
|
BinPackParameters: false
|
||||||
IndentCaseLabels: true
|
IndentCaseLabels: true
|
||||||
IndentGotoLabels: true
|
IndentGotoLabels: true
|
||||||
IndentPPDirectives: BeforeHash
|
IndentPPDirectives: BeforeHash
|
||||||
|
11
glxgears.c
11
glxgears.c
@ -39,7 +39,10 @@ static GLfloat viewDist = 40.0;
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
static void gear(
|
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
|
GLfloat tooth_depth
|
||||||
) {
|
) {
|
||||||
GLint i;
|
GLint i;
|
||||||
@ -320,7 +323,8 @@ static void init(int argc, char *argv[]) {
|
|||||||
gear1 = glGenLists(1);
|
gear1 = glGenLists(1);
|
||||||
glNewList(gear1, GL_COMPILE);
|
glNewList(gear1, GL_COMPILE);
|
||||||
glMaterialfv(
|
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}
|
(const GLfloat[]){245.0 / 255, 169.0 / 255, 184.0 / 255, 1}
|
||||||
);
|
);
|
||||||
gear(1.0, 4.0, 1.0, 20, 0.7);
|
gear(1.0, 4.0, 1.0, 20, 0.7);
|
||||||
@ -335,7 +339,8 @@ static void init(int argc, char *argv[]) {
|
|||||||
gear3 = glGenLists(1);
|
gear3 = glGenLists(1);
|
||||||
glNewList(gear3, GL_COMPILE);
|
glNewList(gear3, GL_COMPILE);
|
||||||
glMaterialfv(
|
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}
|
(const GLfloat[]){91.0 / 255, 206.0 / 255, 250.0 / 255, 1}
|
||||||
);
|
);
|
||||||
gear(1.3, 2.0, 0.5, 10, 0.7);
|
gear(1.3, 2.0, 0.5, 10, 0.7);
|
||||||
|
Loading…
Reference in New Issue
Block a user