2016年2月22日 星期一

2/22 Week01

2/22Week 01

課堂作業01



課堂作業02

code blocks開啟
file-new-project選webgl專案

課堂作業03

解壓縮freegult
code blocks開啟
file-new-profect選glut專案


回家作業

#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();
}


沒有留言:

張貼留言