0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / D3DHost / D3DHost_GraphicDriver.hxx
CommitLineData
62e1beed 1// Created on: 2015-06-10
2// Created by: Kirill Gavrilov
3// Copyright (c) 2015 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
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.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _D3DHost_GraphicDriver_HeaderFile
17#define _D3DHost_GraphicDriver_HeaderFile
18
19#include <OpenGl_GraphicDriver.hxx>
20
62e1beed 21//! This class defines D3D host for an OpenGl graphic driver
22class D3DHost_GraphicDriver : public OpenGl_GraphicDriver
23{
24public:
25
26 //! Constructor.
27 Standard_EXPORT D3DHost_GraphicDriver();
28
29 //! Destructor.
30 Standard_EXPORT virtual ~D3DHost_GraphicDriver();
31
c357e426 32 //! Create instance of D3D host view.
33 Standard_EXPORT virtual Handle(Graphic3d_CView) CreateView (const Handle(Graphic3d_StructureManager)& theMgr) Standard_OVERRIDE;
62e1beed 34
35public:
36
92efcf78 37 DEFINE_STANDARD_RTTIEXT(D3DHost_GraphicDriver,OpenGl_GraphicDriver)
62e1beed 38
39};
40
41DEFINE_STANDARD_HANDLE(D3DHost_GraphicDriver, OpenGl_GraphicDriver)
42
43#endif // _D3DHost_GraphicDriver_HeaderFile