Asp tutorial. net generate a graphical verification code program
Void palm: display ()
{
Glloadidentity (); // reset the current model observation matrix
Glcolor3f (. 0f, 1.0f, 1.0f );
// Draw around the palm
Glbegin (gl_quad_strip );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-47.1311, 16.1908, 10.0000 );
Glvertex3f (-47.1311, 16.1908, 10.0000 );
Glvertex3f (-48.8821,-21.7083, 10.0000 );
Glvertex3f (-48.8821,-21.7083, 10.0000 );
Glvertex3f (-34.5000,-42.2013, 10.0000 );
Glvertex3f (-34.5000,-42.2013, 10.0000 );
Glvertex3f (-34.5000,-62.2013, 10.0000 );
Glvertex3f (-34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-42.2013, 10.0000 );
Glvertex3f (34.5000,-42.2013, 10.0000 );
Glvertex3f (51.5617,-32.7875, 10.0000 );
Glvertex3f (51.5617,-32.7875, 10.0000 );
Glvertex3f (71.9188,-7.6604, 10.0000 );
Glvertex3f (71.9188,-7.6604, 10.0000 );
Glvertex3f (59.0631, 7.6604, 10.0000 );
Glvertex3f (59.0631, 7.6604, 10.0000 );
Glvertex3f (48.9573, 18.3372, 10.0000 );
Glvertex3f (48.9573, 18.3372, 10.0000 );
Glvertex3f (39.5000, 37.7987, 10.0000 );
Glvertex3f (39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glend ();
// Draw the upper surface
Glbegin (gl_polygon );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-47.1311, 16.1908, 10.0000 );
Glvertex3f (-48.8821,-21.7083, 10.0000 );
Glvertex3f (-34.5000,-42.2013, 10.0000 );
Glvertex3f (-34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-42.2013, 10.0000 );
Glvertex3f (51.5617,-32.7875, 10.0000 );
Glvertex3f (71.9188,-7.6604, 10.0000 );
Glvertex3f (59.0631, 7.6604, 10.0000 );
Glvertex3f (48.9573, 18.3372, 10.0000 );
Glvertex3f (39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glend ();
// Draw the lower surface
Glbegin (gl_polygon );
Glvertex3f (-39.5000, 37.7987,-10.0000 );
Glvertex3f (-47.1311, 16.1908,-10.0000 );
Glvertex3f (-48.8821,-21.7083,-10.0000 );
Glvertex3f (-34.5000,-42.2013,-10.0000 );
Glvertex3f (-34.5000,-62.2013,-10.0000 );
Glvertex3f (34.5000,-62.2013,-10.0000 );
Glvertex3f (34.5000,-42.2013,-10.0000 );
Glvertex3f (51.5617,-32.7875,-10.0000 );
Glvertex3f (71.9188,-7.6604,-10.0000 );
Glvertex3f (59.0631, 7.6604,-10.0000 );
Glvertex3f (48.9573, 18.3372,-10.0000 );
Glvertex3f (39.5000, 37.7987,-10.0000 );
Glvertex3f (-39.5000, 37.7987,-10.0000 );
Glend ();
}
Void hand: display ()
{
Finger * pfinger [5] = {& m_thumb, & m_index, & m_medius, & m_ring, & m_little };
M_palm.display (); // palm display
For (int I = 0; I <5; I ++) pfinger [I]-> display (); // display 5 fingers
}