How create a grid floor as reference with python?

hi in c++ and opengl

has a code that let me draws a grid like this.

void DrawGround(void)
GLfloat fExtent = 20.0f;
GLfloat fStep = 1.0f;
GLfloat y = -0.4f;
GLint iLine;

 for(iLine = -fExtent; iLine <= fExtent; iLine += fStep)
        glVertex3f(iLine, y, fExtent);
        glVertex3f(iLine, y, -fExtent);

        glVertex3f(fExtent, y, iLine);
        glVertex3f(-fExtent, y, iLine);



i want convert to python the only what i left is the for loop
i don’t understand how it works for python

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.