scene = Scene Box( 300, 300 );
New Window( "Cylinder", scene );
For( i = 1, i < 360, i++,
scene << Clear;
scene << Perspective( 50, 1, 10 );
scene << Translate( 0.0, 0.0, -2 );
scene << Enable( Lighting );
scene << Enable( Light0 );
scene << Enable( Light1 );
scene << Light( Light0, POSITION, 1, 1, 1, 1 );
scene << Light( Light0, DIFFUSE, 1, 0, 0, 1 );
scene << Light( Light1, POSITION, -1, -1, -1, 1 );
scene << Light( Light1, DIFFUSE, .5, .5, 1, 1 );
scene << Enable( Fog );
scene << Enable( NORMALIZE );
scene << Rotate( i, 1, 0, 0 );
scene << Rotate( i * 3, 0, 1, 0 );
scene << Rotate( i * 3 / 2, 0, 0, 1 );
scene << Cylinder( 0.5, 0.5, 0.5, 40, 10 );
scene << Update;
Wait( 0.01 );
);