Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:48:04

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 
0026   //! Empty constructor.
0027   Standard_EXPORT OpenGl_GraphicDriverFactory();
0028 
0029   //! Creates new empty graphic driver.
0030   Standard_EXPORT virtual Handle(Graphic3d_GraphicDriver) CreateDriver (const Handle(Aspect_DisplayConnection)& theDisp) Standard_OVERRIDE;
0031 
0032   //! Return default driver options.
0033   const Handle(OpenGl_Caps)& DefaultOptions() const { return myDefaultCaps; }
0034 
0035   //! Set default driver options.
0036   void SetDefaultOptions (const Handle(OpenGl_Caps)& theOptions) { myDefaultCaps = theOptions; }
0037 
0038 protected:
0039 
0040   Handle(OpenGl_Caps) myDefaultCaps;
0041 
0042 };
0043 
0044 #endif //_OpenGl_GraphicDriverFactory_Header