7fd59977 |
1 | // File OpenGl_GraphicDriver_print.c |
2 | // Created March 2000 |
3 | // Author THA |
4 | // e-mail t-hartl@muenchen.matra-dtv.fr |
5 | |
6 | /************************************************************************/ |
7 | /* Includes */ |
8 | /************************************************************************/ |
9 | |
10 | #include <OpenGl_GraphicDriver.jxx> |
11 | #include <Aspect_DriverDefinitionError.hxx> |
12 | #include <Standard_NotImplemented.hxx> |
13 | |
14 | #include "OpenGl_tgl_funcs.hxx" |
15 | |
16 | |
17 | /************************************************************************/ |
18 | /* Print Methods */ |
19 | /************************************************************************/ |
20 | |
21 | void OpenGl_GraphicDriver::Print (const Graphic3d_CView& ACView, |
22 | const Aspect_CLayer2d& ACUnderLayer, |
23 | const Aspect_CLayer2d& ACOverLayer, |
24 | const Aspect_Handle hPrintDC, |
25 | const Standard_Boolean showBackground, |
26 | const Standard_CString filename ) const |
27 | { |
28 | |
29 | #ifdef WNT |
30 | Graphic3d_CView MyCView = ACView; |
31 | Aspect_CLayer2d MyCUnderLayer = ACUnderLayer; |
32 | Aspect_CLayer2d MyCOverLayer = ACOverLayer; |
33 | |
34 | if (MyTraceLevel) { |
35 | PrintFunction ("call_togl_print"); |
36 | PrintCView (MyCView, 1); |
37 | } |
38 | call_togl_print (&MyCView, &MyCUnderLayer, &MyCOverLayer, |
39 | hPrintDC, (int)showBackground, filename); |
40 | #else |
41 | Standard_NotImplemented::Raise ("OpenGl_GraphicDriver::Print is implemented " |
42 | "only on Windows"); |
43 | |
44 | #endif |
45 | } |