0022819: Redesign of OpenGl driver
[occt.git] / src / OpenGl / OpenGl_GraphicDriver_705.cxx
1 // File:      OpenGl_GraphicDriver_705.cxx
2 // Created:   20 October 2011
3 // Author:    Sergey ZERCHANINOV
4 // Copyright: OPEN CASCADE 2011
5
6 #include <OpenGl_GraphicDriver.hxx>
7
8 #include <OpenGl_Group.hxx>
9 #include <OpenGl_Polygon.hxx>
10
11 void OpenGl_GraphicDriver::Polygon (const Graphic3d_CGroup& ACGroup,
12                                    const Graphic3d_Array1OfVertex& AListVertex,
13                                    const Graphic3d_TypeOfPolygon AType,
14                                    const Standard_Boolean )
15 {
16   if (ACGroup.ptrGroup)
17   {
18     OpenGl_Polygon *apolygon = new OpenGl_Polygon( AListVertex, AType );
19     ((OpenGl_Group *)ACGroup.ptrGroup)->AddElement( TelPolygon, apolygon );
20   }
21 }
22
23 void OpenGl_GraphicDriver::Polygon (const Graphic3d_CGroup& ,
24                                    const Graphic3d_Array1OfVertex& ,
25                                    const Graphic3d_Vector& ,
26                                    const Graphic3d_TypeOfPolygon ,
27                                    const Standard_Boolean )
28 {
29   // Do nothing
30 }
31
32 void OpenGl_GraphicDriver::Polygon (const Graphic3d_CGroup& ,
33                                    const Graphic3d_Array1OfVertexN& ,
34                                    const Graphic3d_TypeOfPolygon ,
35                                    const Standard_Boolean )
36 {
37   // Do nothing
38 }
39
40 void OpenGl_GraphicDriver::Polygon (const Graphic3d_CGroup& ,
41                                    const Graphic3d_Array1OfVertexN& ,
42                                    const Graphic3d_Vector& ,
43                                    const Graphic3d_TypeOfPolygon ,
44                                    const Standard_Boolean )
45 {
46   // Do nothing
47 }
48
49 void OpenGl_GraphicDriver::Polygon (const Graphic3d_CGroup& ,
50                                    const Graphic3d_Array1OfVertexNT& ,
51                                    const Graphic3d_TypeOfPolygon ,
52                                    const Standard_Boolean )
53 {
54   // Do nothing
55 }
56
57 void OpenGl_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& ,
58                                         const TColStd_Array1OfInteger& ,
59                                         const Graphic3d_Array1OfVertex& ,
60                                         const Standard_Boolean )
61 {
62   // Do nothing
63 }
64
65 void OpenGl_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& ,
66                                         const TColStd_Array1OfInteger& ,
67                                         const Graphic3d_Array1OfVertex& ,
68                                         const Graphic3d_Vector& ,
69                                         const Standard_Boolean )
70 {
71   // Do nothing
72 }
73
74 void OpenGl_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& ,
75                                         const TColStd_Array1OfInteger& ,
76                                         const Graphic3d_Array1OfVertexN& ,
77                                         const Standard_Boolean )
78 {
79   // Do nothing
80 }
81
82 void OpenGl_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& ,
83                                         const TColStd_Array1OfInteger& ,
84                                         const Graphic3d_Array1OfVertexN& ,
85                                         const Graphic3d_Vector& ,
86                                         const Standard_Boolean )
87 {
88   // Do nothing
89 }