1 /***********************************************************************
5 File OpenGl_togl_polygon.c :
12 HISTORIQUE DES MODIFICATIONS :
13 --------------------------------
14 05-08-97 : PCT ; Support texture mapping
16 ************************************************************************/
18 /*----------------------------------------------------------------------*/
23 #include <OpenGl_tgl_all.hxx>
24 #include <InterfaceGraphic_Graphic3d.hxx>
25 #include <OpenGl_tgl.hxx>
26 #include <OpenGl_tgl_funcs.hxx>
27 #include <OpenGl_tgl_subrs.hxx>
28 #include <OpenGl_tgl_utilgr.hxx>
33 CALL_DEF_GROUP * agroup,
34 CALL_DEF_FACET * afacet
37 if (! agroup->IsOpen) call_togl_opengroup (agroup);
38 switch (afacet->TypePoints) {
39 case 1 : /* Vertex Coordinates Specified */
40 if (afacet->NormalIsDefined)
41 call_subr_polygon_data (afacet);
43 call_subr_polygon (afacet);
45 case 2 : /* Coordinates and Vertex Normal Specified */
46 case 5 : /* Coordinates and Vertex Normal and Texture Coordinate Specified */
47 call_subr_polygon_data (afacet);
50 if (! agroup->IsOpen) call_togl_closegroup (agroup);