
課堂作業 2
CodeBlocks開啟 - File / New / Project選OpenGL專案 - Build&Run
*要記得選取儲存資料夾

課堂作業 3
CodeBlocks開啟 - File / New / Project選GLUT專案 -
(A) Project name
(B) 在桌面 (‧‧‧)
(C) C:\users\user\Desktop\freeglut
*找freeglut mingw版本.zip 把裡面glut資料夾copy到桌面
- Build&Run

課堂作業 4
#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("hello 3D");
glutDisplayFunc(display);
glutMainLoop();
}

沒有留言:
張貼留言