标签:
#include "GL/glut.h"
void RenderSceneCB()
{
glClear(GL_COLOR_BUFFER_BIT);
glutSwapBuffers();
}
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);
glutInitWindowSize(1024,768);
glutInitWindowPosition(100,100);
glutCreateWindow("Tutorial 01");
glutDisplayFunc(RenderSceneCB);
glClearColor(0.0f,0.0f,0.0f,0.0f);
glutMainLoop();
}
标签:
原文地址:http://www.cnblogs.com/wzhmxt/p/5860949.html