Browse Source

added missing braces in initializers

tags/mesa_3_3
Brian Paul 25 years ago
parent
commit
8fbd189d81
1 changed files with 20 additions and 20 deletions
  1. 20
    20
      progs/redbook/tesswind.c

+ 20
- 20
progs/redbook/tesswind.c View File

@@ -64,30 +64,30 @@ GLuint list;
void makeNewLists (void) {
int i;
static GLdouble rects[12][3] =
{50.0, 50.0, 0.0, 300.0, 50.0, 0.0,
300.0, 300.0, 0.0, 50.0, 300.0, 0.0,
100.0, 100.0, 0.0, 250.0, 100.0, 0.0,
250.0, 250.0, 0.0, 100.0, 250.0, 0.0,
150.0, 150.0, 0.0, 200.0, 150.0, 0.0,
200.0, 200.0, 0.0, 150.0, 200.0, 0.0};
{{ 50.0, 50.0, 0.0}, {300.0, 50.0, 0.0},
{300.0, 300.0, 0.0}, { 50.0, 300.0, 0.0},
{100.0, 100.0, 0.0}, {250.0, 100.0, 0.0},
{250.0, 250.0, 0.0}, {100.0, 250.0, 0.0},
{150.0, 150.0, 0.0}, {200.0, 150.0, 0.0},
{200.0, 200.0, 0.0}, {150.0, 200.0, 0.0}};
static GLdouble spiral[16][3] =
{400.0, 250.0, 0.0, 400.0, 50.0, 0.0,
50.0, 50.0, 0.0, 50.0, 400.0, 0.0,
350.0, 400.0, 0.0, 350.0, 100.0, 0.0,
100.0, 100.0, 0.0, 100.0, 350.0, 0.0,
300.0, 350.0, 0.0, 300.0, 150.0, 0.0,
150.0, 150.0, 0.0, 150.0, 300.0, 0.0,
250.0, 300.0, 0.0, 250.0, 200.0, 0.0,
200.0, 200.0, 0.0, 200.0, 250.0, 0.0};
{{400.0, 250.0, 0.0}, {400.0, 50.0, 0.0},
{ 50.0, 50.0, 0.0}, { 50.0, 400.0, 0.0},
{350.0, 400.0, 0.0}, {350.0, 100.0, 0.0},
{100.0, 100.0, 0.0}, {100.0, 350.0, 0.0},
{300.0, 350.0, 0.0}, {300.0, 150.0, 0.0},
{150.0, 150.0, 0.0}, {150.0, 300.0, 0.0},
{250.0, 300.0, 0.0}, {250.0, 200.0, 0.0},
{200.0, 200.0, 0.0}, {200.0, 250.0, 0.0}};
static GLdouble quad1[4][3] =
{50.0, 150.0, 0.0, 350.0, 150.0, 0.0,
350.0, 200.0, 0.0, 50.0, 200.0, 0.0};
{{ 50.0, 150.0, 0.0}, {350.0, 150.0, 0.0},
{350.0, 200.0, 0.0}, { 50.0, 200.0, 0.0}};
static GLdouble quad2[4][3] =
{100.0, 100.0, 0.0, 300.0, 100.0, 0.0,
300.0, 350.0, 0.0, 100.0, 350.0, 0.0};
{{100.0, 100.0, 0.0}, {300.0, 100.0, 0.0},
{300.0, 350.0, 0.0}, {100.0, 350.0, 0.0}};
static GLdouble tri[3][3] =
{200.0, 50.0, 0.0, 250.0, 300.0, 0.0,
150.0, 300.0, 0.0};
{{200.0, 50.0, 0.0}, {250.0, 300.0, 0.0},
{150.0, 300.0, 0.0}};
gluTessProperty(tobj, GLU_TESS_WINDING_RULE,
currentWinding);

Loading…
Cancel
Save