2016年3月7日 星期一

[西斯][討論]各位30cm都怎麼在wootalk約炮 03.07.2016

Step1:下載圈起來的檔案


Step2:解壓縮windows

Step3:把data跟Glut32.dll當案丟到window資料夾

Step4:點開Transformexe
你就可以得到一台車車

#include <GL/glut.h>
void display()
{
    glBegin(GL_POLYGON);
    glColor3f(1,1,0);//調顏色
    glVertex2f(0.5,0.5);三角形的頂點
    glVertex2f(0.5,-0.5);三角形的頂點2
    glVertex2f(0,0);三角形的頂點3
    glEnd();
    glutSwapBuffers();
}
int main(int argc, char**argv)
{
    glutInit(&argc,argv);
    glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);
    glutCreateWindow("hello");//視窗名稱

    glutDisplayFunc(display);呼叫display函式裡的東西
    glutMainLoop();
}

沒有留言:

張貼留言