summaryrefslogtreecommitdiff
path: root/src/OpenGl/OpenGl_togl_polygon_holes.cxx
blob: cdda1f4b8bf9b61a1b4806e346f65ce50e3acee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#include <OpenGl_tgl_all.hxx>
#include <InterfaceGraphic_Graphic3d.hxx>
#include <OpenGl_tgl.hxx>
#include <OpenGl_tgl_funcs.hxx>
#include <OpenGl_tgl_subrs.hxx>
#include <OpenGl_tgl_utilgr.hxx>

void EXPORT
call_togl_polygon_holes
(
 CALL_DEF_GROUP * agroup,
 CALL_DEF_LISTFACETS * alfacets
 )
{
#ifdef OK
  if (! agroup->IsOpen) call_togl_opengroup (agroup);
  switch (alfacets->LFacets[0].TypePoints) {
    case 1 : /* Vertex Coordinates Specified */
      if (alfacets->LFacets[0].NormalIsDefined)
        call_subr_polygon_holes_data (alfacets);
      else
        call_subr_polygon_holes (alfacets);
      break;
    case 2 : /* Coordinates and Vertex Normal Specified */
      call_subr_polygon_holes_data (alfacets);
      break;
  }
  if (! agroup->IsOpen) call_togl_closegroup (agroup);
#endif
  return;
}