visual studio
{
glClear(GL_COLOR_BUFFER_BIT);
glRectf(
glFlush();
}
int main(int argc
{
glutInit(&argc
glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE);
glutInitWindowPosition(
glutInitWindowSize(
glutCreateWindow(
glutDisplayFunc(&myDisplay);
glutMainLoop();
return
}
運行成功表明配置OpenGL環境成功!!!
From:http://tw.wingwit.com/Article/program/net/201311/11348.html