0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / OpenGl / OpenGl_Caps.cxx
CommitLineData
58655684 1// Created on: 2013-08-25
2// Created by: Kirill GAVRILOV
d5f74e42 3// Copyright (c) 2013-2014 OPEN CASCADE SAS
58655684 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
58655684 6//
d5f74e42 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
973c2be1 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.
58655684 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
58655684 15
16#include <OpenGl_Caps.hxx>
17
8625ef7e 18#include <OpenGl_GlCore20.hxx>
19
92efcf78 20IMPLEMENT_STANDARD_RTTIEXT(OpenGl_Caps,Standard_Transient)
21
58655684 22// =======================================================================
23// function : OpenGl_Caps
24// purpose :
25// =======================================================================
26OpenGl_Caps::OpenGl_Caps()
ba00aab7 27: sRGBDisable (Standard_False),
28 vboDisable (Standard_False),
a577aaab 29 pntSpritesDisable (Standard_False),
392ac980 30 keepArrayData (Standard_False),
be375252 31 ffpEnable (Standard_False),
2a332745 32 usePolygonMode (Standard_False),
33#if !defined(GL_ES_VERSION_2_0)
c3282ec1 34 useSystemBuffer (Standard_False),
8625ef7e 35#else
c3282ec1 36 useSystemBuffer (Standard_True),
8625ef7e 37#endif
f978241f 38 swapInterval (1),
25b97fac 39 buffersNoSwap (Standard_False),
abe46077 40 contextStereo (Standard_False),
0797d9d3 41#ifdef OCCT_DEBUG
fcdbe201 42 contextDebug (Standard_True),
c87535af 43 contextSyncDebug (Standard_True),
fcdbe201 44#else
abe46077 45 contextDebug (Standard_False),
c87535af 46 contextSyncDebug (Standard_False),
fcdbe201 47#endif
e276548b 48 contextNoAccel (Standard_False),
4e1523ef 49#if !defined(GL_ES_VERSION_2_0)
50 contextCompatible (Standard_True),
51#else
52 contextCompatible (Standard_False),
53#endif
59515ca6 54 contextNoExtensions (Standard_False),
55 contextMajorVersionUpper (-1),
56 contextMinorVersionUpper (-1),
c87535af 57 glslWarnings (Standard_False),
84e84755 58 suppressExtraMsg (Standard_True),
59 glslDumpLevel (OpenGl_ShaderProgramDumpLevel_Off)
58655684 60{
61 //
62}
63
64// =======================================================================
65// function : operator=
66// purpose :
67// =======================================================================
68OpenGl_Caps& OpenGl_Caps::operator= (const OpenGl_Caps& theCopy)
69{
ba00aab7 70 sRGBDisable = theCopy.sRGBDisable;
a577aaab 71 vboDisable = theCopy.vboDisable;
72 pntSpritesDisable = theCopy.pntSpritesDisable;
392ac980 73 keepArrayData = theCopy.keepArrayData;
8625ef7e 74 ffpEnable = theCopy.ffpEnable;
c3282ec1 75 useSystemBuffer = theCopy.useSystemBuffer;
f978241f 76 swapInterval = theCopy.swapInterval;
25b97fac 77 buffersNoSwap = theCopy.buffersNoSwap;
abe46077 78 contextStereo = theCopy.contextStereo;
a577aaab 79 contextDebug = theCopy.contextDebug;
c87535af 80 contextSyncDebug = theCopy.contextSyncDebug;
abe46077 81 contextNoAccel = theCopy.contextNoAccel;
4e1523ef 82 contextCompatible = theCopy.contextCompatible;
59515ca6 83 contextNoExtensions = theCopy.contextNoExtensions;
84 contextMajorVersionUpper = theCopy.contextMajorVersionUpper;
85 contextMinorVersionUpper = theCopy.contextMinorVersionUpper;
392ac980 86 glslWarnings = theCopy.glslWarnings;
c87535af 87 suppressExtraMsg = theCopy.suppressExtraMsg;
84e84755 88 glslDumpLevel = theCopy.glslDumpLevel;
58655684 89 return *this;
90}
91
92// =======================================================================
93// function : ~OpenGl_Caps
94// purpose :
95// =======================================================================
96OpenGl_Caps::~OpenGl_Caps()
97{
98 //
99}