1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
//---------------------------------------------------------------------------
#include <windows.h>
#include <glut.h>
#include <vcl.h>
#pragma hdrstop
void Display();
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGBA|GLUT_SINGLE);
glutInitWindowSize(640,480);
glutInitWindowPosition(50,50);
glutCreateWindow("FenetreGlut");
glutDisplayFunc(Display);
glutMainLoop();
return 0;
}
//---------------------------------------------------------------------------
void Display()
{
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
} |
Partager