|
|
|||
File indexing completed on 2026-09-23 09:18:38
0001 // Copyright (c) 2021 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef _OpenGl_GraphicDriverFactory_Header 0015 #define _OpenGl_GraphicDriverFactory_Header 0016 0017 #include <Graphic3d_GraphicDriverFactory.hxx> 0018 #include <OpenGl_Caps.hxx> 0019 0020 //! This class for creation of OpenGl_GraphicDriver. 0021 class OpenGl_GraphicDriverFactory : public Graphic3d_GraphicDriverFactory 0022 { 0023 DEFINE_STANDARD_RTTIEXT(OpenGl_GraphicDriverFactory, Graphic3d_GraphicDriverFactory) 0024 public: 0025 //! Empty constructor. 0026 Standard_EXPORT OpenGl_GraphicDriverFactory(); 0027 0028 //! Creates new empty graphic driver. 0029 Standard_EXPORT occ::handle<Graphic3d_GraphicDriver> CreateDriver( 0030 const occ::handle<Aspect_DisplayConnection>& theDisp) override; 0031 0032 //! Return default driver options. 0033 const occ::handle<OpenGl_Caps>& DefaultOptions() const { return myDefaultCaps; } 0034 0035 //! Set default driver options. 0036 void SetDefaultOptions(const occ::handle<OpenGl_Caps>& theOptions) { myDefaultCaps = theOptions; } 0037 0038 protected: 0039 occ::handle<OpenGl_Caps> myDefaultCaps; 0040 }; 0041 0042 #endif //_OpenGl_GraphicDriverFactory_Header
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|