2016年2月22日 星期一

Week01 張家豪



建立OpenGL 點開程式跑就好

建立GLUT (多一步要點freeglut的資料夾位置)

茶壺程式碼:

#include <GL/glut.h>{

    glutSolidTeapot(0.3);

    glutSwapBuffers();

}

int main(int argc, char**argv)

{

    glutInit(&argc,argv);


    glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);

    glutCreateWindow("hello 3D");

    glutDisplayFunc(display);

    glutMainLoop();
}    void display()

沒有留言:

張貼留言