- glBegin(GL_LINES);
-
- glColor4f(0, 0, 0, 1);
-
- glVertex3f(-1.0f, 1.0f, -1.0f);
- glVertex3f( 1.0f, 1.0f, -1.0f);
- glVertex3f(-1.0f, -1.0f, -1.0f);
- glVertex3f( 1.0f, -1.0f, -1.0f);
- glVertex3f(-1.0f, 1.0f, 1.0f);
- glVertex3f( 1.0f, 1.0f, 1.0f);
- glVertex3f(-1.0f, -1.0f, 1.0f);
- glVertex3f( 1.0f, -1.0f, 1.0f);
-
- glVertex3f( 1.0f, 1.0f, -1.0f);
- glVertex3f( 1.0f, -1.0f, -1.0f);
- glVertex3f( -1.0f, 1.0f, -1.0f);
- glVertex3f( -1.0f, -1.0f, -1.0f);
- glVertex3f( 1.0f, 1.0f, 1.0f);
- glVertex3f( 1.0f, -1.0f, 1.0f);
- glVertex3f( -1.0f, 1.0f, 1.0f);
- glVertex3f( -1.0f, -1.0f, 1.0f);
-
- glVertex3f( -1.0f, -1.0f, 1.0f);
- glVertex3f( -1.0f, -1.0f, -1.0f);
- glVertex3f( -1.0f, 1.0f, 1.0f);
- glVertex3f( -1.0f, 1.0f, -1.0f);
- glVertex3f( 1.0f, -1.0f, 1.0f);
- glVertex3f( 1.0f, -1.0f, -1.0f);
- glVertex3f( 1.0f, 1.0f, 1.0f);
- glVertex3f( 1.0f, 1.0f, -1.0f);
-
- glEnd();