1.主題:點線面顏色
2.實作:第一個親手寫出
3漏題:其中考題
4.回家作:
(1)
TOPD到http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/
下載WINDOWS.zip >>>windows\shape.exe
data.zip >> windows\data\模型
glut32.dll >> windows\glut32.dll
(2)
去freeglut windows download MinGW
打開codeblocks
打開glut專案
將main cpp程式碼刪除
打上#include <GL/glut.h>
void display()
{
glutSolidTeapot(0.3);
glutSwapBuffers();
}
int main(int argc,char ** argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_DEPTH);
glutCreateWindow("Week03");
glutDisplayFunc(display);
glutMainLoop();
}
執行即可完成
改變顏色
glColor3f(0.44,0.87,0.5);
今天的幸運色就出來了
沒有留言:
張貼留言