2018年3月12日 星期一

Week03 昱霖ㄉ筆記

親手重寫GLUT範例:

#include <GL/glut.h>
void display()
{
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glutSolidTeapot(0.3);
    glutSwapBuffers();

}

int main(int argc, char**argv)
{
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);
    glutCreateWindow("Week03 Mouse操作");

    glutDisplayFunc(display);
    glutMainLoop();
}







沒有留言:

張貼留言