Main Page
Namespaces
Classes
Files
File List
File Members
src
Applications
MSW
DX11
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
>
9
#include <
Applications/MSW/DX11/GteWindow.h
>
10
using namespace
gte
;
11
12
Window::Parameters::Parameters
()
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
35
Window::~Window
()
36
{
37
if
(
mEngine
)
38
{
39
auto
dxengine = std::static_pointer_cast<
DX11Engine
>(
mEngine
);
40
dxengine->
ExitFullscreen
();
41
}
42
}
GTEnginePCH.h
gte::Window::Parameters::Parameters
Parameters()
Definition:
GLX/GteWindow.cpp:15
std
Definition:
GteBSNumber.h:963
GteWindow.h
gte::Window::Window
Window(Parameters ¶meters)
Definition:
GLX/GteWindow.cpp:37
gte::MSWWindow
Definition:
GteMSWWindow.h:16
gte
Definition:
GLX/GteWICFileIO.h:16
gte::GraphicsEngine
Definition:
GteGraphicsEngine.h:28
gte::Window::~Window
virtual ~Window()
Definition:
GLX/GteWindow.cpp:33
gte::Window::mEngine
std::shared_ptr< GraphicsEngine > mEngine
Definition:
GLX/GteWindow.h:69
gte::DX11Engine::ExitFullscreen
void ExitFullscreen()
Definition:
GteDX11Engine.cpp:285
gte::DX11Engine
Definition:
GteDX11Engine.h:26
gte::WindowBase::mBaseEngine
std::shared_ptr< BaseEngine > mBaseEngine
Definition:
GteWindowBase.h:159
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:02