我需要在openGL中绘制下图。
alt text http://i42.tinypic.com/10xviwx.jpg
我尝试用这样的多边形做到这一点
glTexCoord2f(0.0f, 0.0f);glVertex3f(9.5f,0,-20);
glTexCoord2f(0.5f, 0.0f);glVertex3f(20,0,-20);
glTexCoord2f(0.0f, 1.0f);glVertex3f(20,0,40);
glTexCoord2f(1.0f, 0.0f);glVertex3f(9.5f,0,40);
glTexCoord2f(0.0f, 0.0f);glVertex3f(9.5f,0,40);
glTexCoord2f(1.0f, 0.0f);glVertex3f(-20,0,40);
glTexCoord2f(0.0f, 1.0f);glVertex3f(-20,0,0);
glTexCoord2f(1.0f, 0.0f);glVertex3f(-3.5f,0,0);
glTexCoord2f(1.0f, 1.0f);glVertex3f(9.5f,0,0);
我没有得到确切的数字,我得到了下图:
alt text http://i39.tinypic.com/2iw4jz6.jpg
任何人都可以帮忙吗?