OCC22150 Problem with GetWindowLong function on 64-bit platform
[occt.git] / src / OpenGl / OpenGl_GraphicDriver_4.cxx
CommitLineData
7fd59977 1
2
3// File OpenGl_GraphicDriver_4.cxx
4// Created Mardi 28 janvier 1997
5// Author CAL
6
7//-Copyright MatraDatavision 1997
8
9//-Version
10
11//-Design Declaration des variables specifiques aux Drivers
12
13//-Warning Un driver encapsule les Pex et OpenGl drivers
14
15//-References
16
17//-Language C++ 2.0
18
19//-Declarations
20
21// for the class
22#include <OpenGl_GraphicDriver.jxx>
23
24#include <Aspect_DriverDefinitionError.hxx>
25
26#include <OpenGl_tgl_funcs.hxx>
27
28//-Aliases
29
30//-Global data definitions
31
32//-Methods, in order
33
34void OpenGl_GraphicDriver::ClearStructure (const Graphic3d_CStructure& ACStructure) {
35
36 Graphic3d_CStructure MyCStructure = ACStructure;
37
38
39 if (MyTraceLevel) {
40 PrintFunction ("call_togl_clearstructure");
41 PrintCStructure (MyCStructure, 1);
42 }
43 call_togl_clearstructure (&MyCStructure);
44
45}
46
47void OpenGl_GraphicDriver::Connect (const Graphic3d_CStructure& AFather, const Graphic3d_CStructure& ASon) {
48
49 Graphic3d_CStructure MyFather = AFather;
50 Graphic3d_CStructure MySon = ASon;
51
52 if (MyTraceLevel) {
53 PrintFunction ("call_togl_connect");
54 PrintString ("AFather", "");
55 PrintCStructure (MyFather, 1);
56 PrintString ("ASon", "");
57 PrintCStructure (MySon, 1);
58 }
59 call_togl_connect (&MyFather, &MySon);
60
61}
62
63void OpenGl_GraphicDriver::ContextStructure (const Graphic3d_CStructure& ACStructure) {
64
65 Graphic3d_CStructure MyCStructure = ACStructure;
66
67 if (MyTraceLevel) {
68 PrintFunction ("call_togl_contextstructure");
69 PrintCStructure (MyCStructure, 1);
70 PrintCStructure (MyCStructure, 2);
71 }
72 call_togl_contextstructure (&MyCStructure);
73
74}
75
76void OpenGl_GraphicDriver::Disconnect (const Graphic3d_CStructure& AFather, const Graphic3d_CStructure& ASon) {
77
78 Graphic3d_CStructure MyFather = AFather;
79 Graphic3d_CStructure MySon = ASon;
80
81 if (MyTraceLevel) {
82 PrintFunction ("call_togl_disconnect");
83 PrintString ("AFather", "");
84 PrintCStructure (AFather, 1);
85 PrintString ("ASon", "");
86 PrintCStructure (MySon, 1);
87 }
88 call_togl_disconnect (&MyFather, &MySon);
89
90}
91
92void OpenGl_GraphicDriver::DisplayStructure (const Graphic3d_CView& ACView, const Graphic3d_CStructure& ACStructure, const Standard_Integer APriority) {
93
94 Graphic3d_CView MyCView = ACView;
95 Graphic3d_CStructure MyCStructure = ACStructure;
96
97 if (MyTraceLevel) {
98 PrintFunction ("call_togl_displaystructure");
99 PrintCView (MyCView, 1);
100 PrintCStructure (MyCStructure, 1);
101 PrintInteger ("Priority", APriority);
102 }
103 call_togl_displaystructure (&MyCView, MyCStructure.Id, int (APriority));
104
105}
106
107void OpenGl_GraphicDriver::EraseStructure (const Graphic3d_CView& ACView, const Graphic3d_CStructure& ACStructure) {
108
109 Graphic3d_CView MyCView = ACView;
110 Graphic3d_CStructure MyCStructure = ACStructure;
111
112 if (MyTraceLevel) {
113 PrintFunction ("call_togl_erasestructure");
114 PrintCView (MyCView, 1);
115 PrintCStructure (MyCStructure, 1);
116 }
117 call_togl_erasestructure (MyCView.ViewId, MyCStructure.Id);
118
119}
120
121void OpenGl_GraphicDriver::RemoveStructure (const Graphic3d_CStructure& ACStructure) {
122
123 Graphic3d_CStructure MyCStructure = ACStructure;
124
125 if (MyTraceLevel) {
126 PrintFunction ("call_togl_removestructure");
127 PrintCStructure (MyCStructure, 1);
128 }
129 call_togl_removestructure (&MyCStructure);
130
131}
132
133void OpenGl_GraphicDriver::Structure (Graphic3d_CStructure& ACStructure) {
134
135 Graphic3d_CStructure MyCStructure = ACStructure;
136 if (MyTraceLevel) {
137 PrintFunction ("call_togl_structure");
138 PrintCStructure (MyCStructure, 1);
139 }
140 call_togl_structure (&MyCStructure);
141
142}