0032308: Configuration - make Xlib dependency optional
[occt.git] / src / OpenGl / OpenGl_Element.cxx
1 // Created on: 2013-02-01
2 // Created by: Kirill GAVRILOV
3 // Copyright (c) 2013-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <OpenGl_Element.hxx>
17
18 #include <Graphic3d_FrameStatsData.hxx>
19 #include <Standard_Dump.hxx>
20
21 // =======================================================================
22 // function : OpenGl_Element
23 // purpose  :
24 // =======================================================================
25 OpenGl_Element::OpenGl_Element()
26 {
27   //
28 }
29
30 // =======================================================================
31 // function : ~OpenGl_Element
32 // purpose  :
33 // =======================================================================
34 OpenGl_Element::~OpenGl_Element()
35 {
36   //
37 }
38
39 // =======================================================================
40 // function : UpdateMemStats
41 // purpose  :
42 // =======================================================================
43 void OpenGl_Element::UpdateMemStats (Graphic3d_FrameStatsDataTmp& theStats) const
44 {
45   theStats[Graphic3d_FrameStatsCounter_EstimatedBytesGeom] += EstimatedDataSize();
46 }
47
48 // =======================================================================
49 // function : UpdateDrawStats
50 // purpose  :
51 // =======================================================================
52 void OpenGl_Element::UpdateDrawStats (Graphic3d_FrameStatsDataTmp& ,
53                                       bool ) const
54 {
55   //
56 }
57
58 // =======================================================================
59 // function : DumpJson
60 // purpose  :
61 // =======================================================================
62 void OpenGl_Element::DumpJson (Standard_OStream& theOStream, Standard_Integer) const
63 {
64   OCCT_DUMP_CLASS_BEGIN (theOStream, OpenGl_Element)
65   OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, this)
66 }