2016年2月28日 星期日

Week01,葉川麟

1. WebGL Water
網址:http://madebyevan.com/webgl-water/

                                                           2. CodeBlocks : 認識OpenGL


3.學習打GL程式碼
#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();
}

沒有留言:

張貼留言