使用MFC绘制枫叶树叶
glShadeModel(GL_SMOOTH);glPolygonMode(GL_FRONT_AND_BACK,GL_FILL);glBegin(GL_TRIANGLE_FAN);glVertex3f(0.0f,0.0f,0.0f);glVertex3f(0.16f,-.05f,0.0f);glVertex3f(0.2f,-0.05f,0.0f);glVertex3f(0.1f,0.0f,0.0f);glVertex3f(0.2f,0.05f,0.0f);glVertex3f(0.1f,0.06f,0.0f);glVertex3f(0.16f,0.08f,0.0f);
下载地址
用户评论