#include #include class GLintPoint { }; int random( int m ) { } void drawDot( GLint x, GLint y ) { } //<<<<<<<<<<<<<< myInit >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void myInit( void ) { glClearColor( 1.0, 1.0, 1.0, 0.0 ); glColor3f( 0.0, 0.0, 0.0 ); glPointSize( 1.0 ); glMatrixMode( GL_PROJECTION ); glLoadIdentity( ); gluOrtho2D( 0.0, 640.0, 0.0, 480.0 ); } void Sierpinski( void ) { } //<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>> void myDisplay( void ) { glClear( GL_COLOR_BUFFER_BIT ); Sierpinski( ); } //<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void main( int argc, char** argv ) { glutInit( &argc, argv ); glutInitDisplayMode( GLUT_SINGLE | GLUT_RGB ); glutInitWindowSize( 640, 480 ); glutInitWindowPosition( 100, 150 ); glutCreateWindow( "my first attempt" ); glutDisplayFunc( myDisplay ); myInit( ); glutMainLoop( ); }