1 // Created on: 2013-08-25
2 // Created by: Kirill GAVRILOV
3 // Copyright (c) 2013-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <OpenGl_Caps.hxx>
18 #include <OpenGl_GlCore20.hxx>
21 // =======================================================================
22 // function : OpenGl_Caps
24 // =======================================================================
25 OpenGl_Caps::OpenGl_Caps()
26 : vboDisable (Standard_False),
27 pntSpritesDisable (Standard_False),
28 keepArrayData (Standard_False),
29 #if !defined(GL_ES_VERSION_2_0)
30 ffpEnable (Standard_True),
31 useSystemBuffer (Standard_False),
33 ffpEnable (Standard_False),
34 useSystemBuffer (Standard_True),
37 buffersNoSwap (Standard_False),
38 contextStereo (Standard_False),
40 contextDebug (Standard_True),
41 contextSyncDebug (Standard_True),
43 contextDebug (Standard_False),
44 contextSyncDebug (Standard_False),
46 contextNoAccel (Standard_False),
47 #if !defined(GL_ES_VERSION_2_0)
48 contextCompatible (Standard_True),
50 contextCompatible (Standard_False),
52 glslWarnings (Standard_False),
53 suppressExtraMsg (Standard_True)
58 // =======================================================================
59 // function : operator=
61 // =======================================================================
62 OpenGl_Caps& OpenGl_Caps::operator= (const OpenGl_Caps& theCopy)
64 vboDisable = theCopy.vboDisable;
65 pntSpritesDisable = theCopy.pntSpritesDisable;
66 keepArrayData = theCopy.keepArrayData;
67 ffpEnable = theCopy.ffpEnable;
68 useSystemBuffer = theCopy.useSystemBuffer;
69 swapInterval = theCopy.swapInterval;
70 buffersNoSwap = theCopy.buffersNoSwap;
71 contextStereo = theCopy.contextStereo;
72 contextDebug = theCopy.contextDebug;
73 contextSyncDebug = theCopy.contextSyncDebug;
74 contextNoAccel = theCopy.contextNoAccel;
75 contextCompatible = theCopy.contextCompatible;
76 glslWarnings = theCopy.glslWarnings;
77 suppressExtraMsg = theCopy.suppressExtraMsg;
81 // =======================================================================
82 // function : ~OpenGl_Caps
84 // =======================================================================
85 OpenGl_Caps::~OpenGl_Caps()