MSW/DX11/GteWindow.cpp
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.1 (2016/07/16)
7 
8 #include <GTEnginePCH.h>
10 using namespace gte;
11 
13  :
14  deviceCreationFlags(0),
15  featureLevel(D3D_FEATURE_LEVEL_11_0)
16 {
17 }
18 
19 Window::Parameters::Parameters(std::wstring const& inTitle,
20  int inXOrigin, int inYOrigin, int inXSize, int inYSize)
21  :
22  MSWWindow::Parameters(inTitle, inXOrigin, inYOrigin, inXSize, inYSize),
23  deviceCreationFlags(0),
24  featureLevel(D3D_FEATURE_LEVEL_11_0)
25 {
26 }
27 
28 Window::Window(Parameters& parameters)
29  :
30  MSWWindow(parameters),
31  mEngine(std::static_pointer_cast<GraphicsEngine>(mBaseEngine))
32 {
33 }
34 
36 {
37  if (mEngine)
38  {
39  auto dxengine = std::static_pointer_cast<DX11Engine>(mEngine);
40  dxengine->ExitFullscreen();
41  }
42 }
Window(Parameters &parameters)
virtual ~Window()
std::shared_ptr< GraphicsEngine > mEngine
Definition: GLX/GteWindow.h:69
std::shared_ptr< BaseEngine > mBaseEngine


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:02