added missing braces in array initializations
This commit is contained in:
parent
3d993b7dee
commit
37ff9433c0
|
@ -125,18 +125,18 @@ void CALLBACK combineCallback(GLdouble coords[3],
|
|||
void init (void)
|
||||
{
|
||||
GLUtesselator *tobj;
|
||||
GLdouble rect[4][3] = {50.0, 50.0, 0.0,
|
||||
200.0, 50.0, 0.0,
|
||||
200.0, 200.0, 0.0,
|
||||
50.0, 200.0, 0.0};
|
||||
GLdouble tri[3][3] = {75.0, 75.0, 0.0,
|
||||
125.0, 175.0, 0.0,
|
||||
175.0, 75.0, 0.0};
|
||||
GLdouble star[5][6] = {250.0, 50.0, 0.0, 1.0, 0.0, 1.0,
|
||||
325.0, 200.0, 0.0, 1.0, 1.0, 0.0,
|
||||
400.0, 50.0, 0.0, 0.0, 1.0, 1.0,
|
||||
250.0, 150.0, 0.0, 1.0, 0.0, 0.0,
|
||||
400.0, 150.0, 0.0, 0.0, 1.0, 0.0};
|
||||
GLdouble rect[4][3] = {{50.0, 50.0, 0.0},
|
||||
{200.0, 50.0, 0.0},
|
||||
{200.0, 200.0, 0.0},
|
||||
{50.0, 200.0, 0.0}};
|
||||
GLdouble tri[3][3] = {{75.0, 75.0, 0.0},
|
||||
{125.0, 175.0, 0.0},
|
||||
{175.0, 75.0, 0.0}};
|
||||
GLdouble star[5][6] = {{250.0, 50.0, 0.0, 1.0, 0.0, 1.0},
|
||||
{325.0, 200.0, 0.0, 1.0, 1.0, 0.0},
|
||||
{400.0, 50.0, 0.0, 0.0, 1.0, 1.0},
|
||||
{250.0, 150.0, 0.0, 1.0, 0.0, 0.0},
|
||||
{400.0, 150.0, 0.0, 0.0, 1.0, 0.0}};
|
||||
|
||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue