OCC22108 Cutting plane unpredictable behaviour in V3d_View
[occt.git] / src / OpenGl / OpenGl_GraphicDriver_1.cxx
CommitLineData
7fd59977 1
2
3// File OpenGl_GraphicDriver_1.cxx
4// Created Mardi 28 janvier 1997
5// Author CAL
6// Modified GG 27/12/02 IMP120302 Add new method Begin(Aspect_Display)
7
8//-Copyright MatraDatavision 1997
9
10//-Version
11
12//-Design Declaration des variables specifiques aux Drivers
13
14//-Warning Un driver encapsule les Pex et OpenGl drivers
15
16//-References
17
18//-Language C++ 2.0
19
20//-Declarations
21
22// for the class
23#include <OpenGl_GraphicDriver.jxx>
24
25#include <Aspect_DriverDefinitionError.hxx>
26
27#include <OpenGl_tgl_funcs.hxx>
28
29//-Aliases
30
31//-Global data definitions
32
33//-Methods, in order
34
35//=======================================================================
36//function : Begin
37//purpose :
38//=======================================================================
39
40Standard_Boolean OpenGl_GraphicDriver::Begin (const Standard_CString ADisplay)
41{
42
43
44 Standard_Boolean Result;
45
46 if (MyTraceLevel) {
47 PrintFunction ("call_togl_begin");
48 PrintString ("Display", ADisplay);
49 }
50 Result = call_togl_begin ((Standard_PCharacter)ADisplay);
51 if (MyTraceLevel) {
52 PrintIResult ("call_togl_begin", Result);
53 }
54
55 return Result;
56
57}
58
59//RIC120302
60//=======================================================================
61//function : Begin
62//purpose :
63//=======================================================================
64
65Standard_Boolean OpenGl_GraphicDriver::Begin (const Aspect_Display ADisplay)
66{
67
68 Standard_Boolean Result;
69
70 if (MyTraceLevel) {
71 PrintFunction ("call_togl_begin_display");
72 }
73 Result = call_togl_begin_display (ADisplay);
74 if (MyTraceLevel) {
75 PrintIResult ("call_togl_begin_display", Result);
76 }
77
78 return Result;
79
80}
81//RIC120302
82
83//=======================================================================
84//function : End
85//purpose :
86//=======================================================================
87
88void OpenGl_GraphicDriver::End () {
89
90 if (MyTraceLevel) {
91 PrintFunction ("call_togl_end");
92 }
93 call_togl_end ();
94
95}
96
97//=======================================================================
98//function : BeginAnimation
99//purpose :
100//=======================================================================
101
102void OpenGl_GraphicDriver::BeginAnimation (const Graphic3d_CView& ACView) {
103
104 Graphic3d_CView MyCView = ACView;
105
106 if (MyTraceLevel) {
107 PrintFunction ("call_togl_begin_animation");
108 PrintCView (MyCView, 1);
109 }
110 call_togl_begin_animation (&MyCView);
111
112}
113
114//=======================================================================
115//function : EndAnimation
116//purpose :
117//=======================================================================
118
119void OpenGl_GraphicDriver::EndAnimation (const Graphic3d_CView& ACView) {
120
121 Graphic3d_CView MyCView = ACView;
122
123 if (MyTraceLevel) {
124 PrintFunction ("call_togl_end_animation");
125 PrintCView (MyCView, 1);
126 }
127 call_togl_end_animation (&MyCView);
128
129}