課堂作業1
從底部看的球
課堂作業2
在Code::Blocks新增OPENGL 專案File->New->Project,選opengl project
建立專案名、選擇儲存資料夾
左下打開source標籤裡的main.c
執行

課堂作業3
freeglut資料夾解壓縮到桌面,複製位置
建立GLUTproject
Please selest GLUT's loctoin: 貼上位置
執行

課堂作業4
10行程式碼
#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("hellow 3D");
glutDisplayFunc(display);
glutMainLoop();
}

沒有留言:
張貼留言