64,683
社区成员
发帖
与我相关
我的任务
分享
glBegin(GL_QUADS);
for (size_t y = 0, Y = 100; y != Y-1; ++y)
for (size_t x = 0, X = 100; x != X-1; ++x)
{
glVertex3d(points[y ][x ][0],points[y ][x ][1],points[y ][x ][2]);
glVertex3d(points[y ][x+1][0],points[y ][x+1][1],points[y ][x+1][2]);
glVertex3d(points[y+1][x+1][0],points[y+1][x+1][1],points[y+1][x+1][2]);
glVertex3d(points[y+1][x ][0],points[y+1][x ][1],points[y+1][x ][2]);
}
glEnd();