2013年2月22日 星期五

第一週

2013電腦圖學 Computer Graphics
授課教師: 葉正聖
銘傳大學資訊傳播工程系

作業1: 讓家中有寫OpenGL程式環境
作業2: 第一個OpenGL程式(點線面顏色)

http://www.facebook.com/groups/2013graphics/

1. 在 Blog 上面發佈你的第一篇文章,記得打tag




2. 我的第一個OpenGL程式












3. 我親自寫出來的第一個 OpenGL程式

#include <GL/glut.h>

 void display()
 {
  glutSolidTeapot(0.3);
  glutSwapBuffers();     
      
}


int 
main()
{

    glutInitDisplayMode( GLUT_DOUBLE | GLUT_DEPTH);

    glutCreateWindow("00160715 my first glut");

  
    glutDisplayFunc(display);
   

    glutMainLoop();

    return 0;
}


4.

沒有留言:

張貼留言