7fd59977 |
1 | |
2 | #include <OpenGl_tgl_all.hxx> |
3 | #include <InterfaceGraphic_Graphic3d.hxx> |
4 | #include <OpenGl_tgl.hxx> |
5 | #include <OpenGl_tgl_funcs.hxx> |
6 | #include <OpenGl_tgl_subrs.hxx> |
7 | #include <OpenGl_tgl_utilgr.hxx> |
8 | |
9 | void EXPORT |
10 | call_togl_polyline |
11 | ( |
12 | CALL_DEF_GROUP * agroup, |
13 | CALL_DEF_LISTPOINTS * alpoints |
14 | ) |
15 | { |
16 | if (! agroup->IsOpen) call_togl_opengroup (agroup); |
17 | switch (alpoints->TypePoints) { |
18 | case 1 : /* Vertex Coordinates Specified */ |
19 | call_subr_polyline (alpoints); |
20 | break; |
21 | case 3 : /* Coordinates and Vertex Colour Specified */ |
22 | call_subr_polyline_data (alpoints); |
23 | break; |
24 | } |
25 | if (! agroup->IsOpen) call_togl_closegroup (agroup); |
26 | return; |
27 | } |