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 | |
58655684 |
20 | |
21 | // ======================================================================= |
22 | // function : OpenGl_Caps |
23 | // purpose : |
24 | // ======================================================================= |
25 | OpenGl_Caps::OpenGl_Caps() |
a577aaab |
26 | : vboDisable (Standard_False), |
27 | pntSpritesDisable (Standard_False), |
392ac980 |
28 | keepArrayData (Standard_False), |
8625ef7e |
29 | #if !defined(GL_ES_VERSION_2_0) |
30 | ffpEnable (Standard_True), |
c3282ec1 |
31 | useSystemBuffer (Standard_False), |
8625ef7e |
32 | #else |
33 | ffpEnable (Standard_False), |
c3282ec1 |
34 | useSystemBuffer (Standard_True), |
8625ef7e |
35 | #endif |
f978241f |
36 | swapInterval (1), |
25b97fac |
37 | buffersNoSwap (Standard_False), |
abe46077 |
38 | contextStereo (Standard_False), |
0797d9d3 |
39 | #ifdef OCCT_DEBUG |
fcdbe201 |
40 | contextDebug (Standard_True), |
c87535af |
41 | contextSyncDebug (Standard_True), |
fcdbe201 |
42 | #else |
abe46077 |
43 | contextDebug (Standard_False), |
c87535af |
44 | contextSyncDebug (Standard_False), |
fcdbe201 |
45 | #endif |
e276548b |
46 | contextNoAccel (Standard_False), |
4e1523ef |
47 | #if !defined(GL_ES_VERSION_2_0) |
48 | contextCompatible (Standard_True), |
49 | #else |
50 | contextCompatible (Standard_False), |
51 | #endif |
c87535af |
52 | glslWarnings (Standard_False), |
53 | suppressExtraMsg (Standard_True) |
58655684 |
54 | { |
55 | // |
56 | } |
57 | |
58 | // ======================================================================= |
59 | // function : operator= |
60 | // purpose : |
61 | // ======================================================================= |
62 | OpenGl_Caps& OpenGl_Caps::operator= (const OpenGl_Caps& theCopy) |
63 | { |
a577aaab |
64 | vboDisable = theCopy.vboDisable; |
65 | pntSpritesDisable = theCopy.pntSpritesDisable; |
392ac980 |
66 | keepArrayData = theCopy.keepArrayData; |
8625ef7e |
67 | ffpEnable = theCopy.ffpEnable; |
c3282ec1 |
68 | useSystemBuffer = theCopy.useSystemBuffer; |
f978241f |
69 | swapInterval = theCopy.swapInterval; |
25b97fac |
70 | buffersNoSwap = theCopy.buffersNoSwap; |
abe46077 |
71 | contextStereo = theCopy.contextStereo; |
a577aaab |
72 | contextDebug = theCopy.contextDebug; |
c87535af |
73 | contextSyncDebug = theCopy.contextSyncDebug; |
abe46077 |
74 | contextNoAccel = theCopy.contextNoAccel; |
4e1523ef |
75 | contextCompatible = theCopy.contextCompatible; |
392ac980 |
76 | glslWarnings = theCopy.glslWarnings; |
c87535af |
77 | suppressExtraMsg = theCopy.suppressExtraMsg; |
58655684 |
78 | return *this; |
79 | } |
80 | |
81 | // ======================================================================= |
82 | // function : ~OpenGl_Caps |
83 | // purpose : |
84 | // ======================================================================= |
85 | OpenGl_Caps::~OpenGl_Caps() |
86 | { |
87 | // |
88 | } |