0031478: Visualization, TKOpenGl - allow uploading Cubemap in compressed DDS format...
[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),
faff3767 28 compressedTexturesDisable (Standard_False),
ba00aab7 29 vboDisable (Standard_False),
a577aaab 30 pntSpritesDisable (Standard_False),
392ac980 31 keepArrayData (Standard_False),
be375252 32 ffpEnable (Standard_False),
2a332745 33 usePolygonMode (Standard_False),
34#if !defined(GL_ES_VERSION_2_0)
c3282ec1 35 useSystemBuffer (Standard_False),
8625ef7e 36#else
c3282ec1 37 useSystemBuffer (Standard_True),
8625ef7e 38#endif
f978241f 39 swapInterval (1),
25b97fac 40 buffersNoSwap (Standard_False),
abe46077 41 contextStereo (Standard_False),
0797d9d3 42#ifdef OCCT_DEBUG
fcdbe201 43 contextDebug (Standard_True),
c87535af 44 contextSyncDebug (Standard_True),
fcdbe201 45#else
abe46077 46 contextDebug (Standard_False),
c87535af 47 contextSyncDebug (Standard_False),
fcdbe201 48#endif
e276548b 49 contextNoAccel (Standard_False),
4e1523ef 50#if !defined(GL_ES_VERSION_2_0)
51 contextCompatible (Standard_True),
52#else
53 contextCompatible (Standard_False),
54#endif
59515ca6 55 contextNoExtensions (Standard_False),
56 contextMajorVersionUpper (-1),
57 contextMinorVersionUpper (-1),
faff3767 58 isTopDownTextureUV(Standard_False),
c87535af 59 glslWarnings (Standard_False),
84e84755 60 suppressExtraMsg (Standard_True),
61 glslDumpLevel (OpenGl_ShaderProgramDumpLevel_Off)
58655684 62{
63 //
64}
65
66// =======================================================================
67// function : operator=
68// purpose :
69// =======================================================================
70OpenGl_Caps& OpenGl_Caps::operator= (const OpenGl_Caps& theCopy)
71{
ba00aab7 72 sRGBDisable = theCopy.sRGBDisable;
faff3767 73 compressedTexturesDisable = theCopy.compressedTexturesDisable;
a577aaab 74 vboDisable = theCopy.vboDisable;
75 pntSpritesDisable = theCopy.pntSpritesDisable;
392ac980 76 keepArrayData = theCopy.keepArrayData;
8625ef7e 77 ffpEnable = theCopy.ffpEnable;
c3282ec1 78 useSystemBuffer = theCopy.useSystemBuffer;
f978241f 79 swapInterval = theCopy.swapInterval;
25b97fac 80 buffersNoSwap = theCopy.buffersNoSwap;
abe46077 81 contextStereo = theCopy.contextStereo;
a577aaab 82 contextDebug = theCopy.contextDebug;
c87535af 83 contextSyncDebug = theCopy.contextSyncDebug;
abe46077 84 contextNoAccel = theCopy.contextNoAccel;
4e1523ef 85 contextCompatible = theCopy.contextCompatible;
59515ca6 86 contextNoExtensions = theCopy.contextNoExtensions;
87 contextMajorVersionUpper = theCopy.contextMajorVersionUpper;
88 contextMinorVersionUpper = theCopy.contextMinorVersionUpper;
faff3767 89 isTopDownTextureUV = theCopy.isTopDownTextureUV;
392ac980 90 glslWarnings = theCopy.glslWarnings;
c87535af 91 suppressExtraMsg = theCopy.suppressExtraMsg;
84e84755 92 glslDumpLevel = theCopy.glslDumpLevel;
58655684 93 return *this;
94}
95
96// =======================================================================
97// function : ~OpenGl_Caps
98// purpose :
99// =======================================================================
100OpenGl_Caps::~OpenGl_Caps()
101{
102 //
103}