老師補充
http://www.awwwards.com/22-experimental-webgl-demo-examples.html
http://webglsamples.org/
課堂作業2:
CodeBlock開file>new>project>OpenGL>F9展示
課堂作業3:
CodeBlock開file>new>project>GLUT
課堂作業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();
}
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();
}




沒有留言:
張貼留言