// CSCI 201 -- Lab 12 // Your name here // #include "ezwin.h" SimpleWindow MyWin("Pretty face", 12.0, 16.0) ; // This routine is called when the program starts int ApiMain() { MyWin.Open() ; Position FaceShape[4] = { Position( 1.0f, 1.0f) , Position(11.0f, 1.0f) , Position(11.0f, 15.0f) , Position( 1.0f, 15.0f) } ; MyWin.RenderPolygon(FaceShape, 4, Yellow, true); Position NoseShape[3] = { Position( 5.0f, 10.5f) , Position( 7.0f, 10.5f) , Position( 6.0f, 7.5f) } ; MyWin.RenderPolygon(NoseShape, 3, Red, true) ; Position MouthShape[4] = { Position( 3.0f, 11.5f) , Position( 9.0f, 11.5f) , Position( 9.0f, 12.5f) , Position( 3.0f, 12.5f) } ; MyWin.RenderPolygon(MouthShape, 4, Red, true) ; Position EyeShape[6] = { Position( 3.0f, 6.5f ) , Position( 3.8f, 6.0f ) , Position( 4.2f, 6.0f ) , Position( 5.0f, 6.5f ) , Position( 4.2f, 7.0f ) , Position( 3.8f, 7.0f ) } ; MyWin.RenderPolygon(EyeShape, 6, White, true) ; return 0 ; } // Called when the program is terminated // Do not change this routine !! int ApiEnd() { MyWin.Close() ; return 0 ; }