Home > Back-end >  Opengl and for loop combination problem
Opengl and for loop combination problem

Time:09-25

I have a large array of libraries to draw several nested square
But applications
GlBegin (GL_LINE_LOOP);
for (int i=0; i {//each circle square f different
If==f (t)//each coordinate with a f logo, when f and t phase at the same time, began to draw points, when the change is not the same as the t f instructions into next
//draw a circle square
{
[I] glVertex2f (xp mx, xp [I] my);
}
Else if (t!=f)
{
GlEnd ();
T=t + 1;
GlBegin (GL_LINE_LOOP);
[I] glVertex2f (xp mx, xp [I] my);
}
}
GlEnd ();

But draw graphics does continuous

Please help!!!!!!!!!!

CodePudding user response:

First picture of the outer ring?
Order is the "upper left to lower left", then lower left to lower right, lower right to upper right?

If so, you top right corner that some initialization is wrong, not satisfy t=f

CodePudding user response:

Indeed, the second circle of the initial point in the right position, but after the continuous not painting a circle disconnect
  • Related