作業1
從網址 jsyeh.org/3dcg10
下載 sorce , date , win32 ,glut32.dll
將檔案解壓縮,並將檔案加入 win32 資料夾
作業2
建立一個GLUT專案
#include <GL/glut.h>
void display()
{
glColor3f(1,0,0);
glClear(GL_COLOR_BUFFER_BIT);
glClearColor(1,1,0,0);
glutSolidTeapot(0.3);
glutSwapBuffers();
}
int main( int argc,char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_DEPTH);
glutCreateWindow("hello 3D");
glutDisplayFunc(display);
glutMainLoop();
}


沒有留言:
張貼留言