Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
DX11
GteDX11DepthStencilState.h
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.0 (2016/06/19)
7
8
#pragma once
9
10
#include <
Graphics/GteDepthStencilState.h
>
11
#include <
Graphics/DX11/GteDX11DrawingState.h
>
12
13
namespace
gte
14
{
15
16
class
GTE_IMPEXP
DX11DepthStencilState
:
public
DX11DrawingState
17
{
18
public
:
19
// Construction.
20
DX11DepthStencilState
(ID3D11Device* device,
DepthStencilState
const
* depthStencilState);
21
static
std::shared_ptr<GEObject> Create(
void
* device,
GraphicsObject
const
*
object
);
22
23
// Member access.
24
inline
DepthStencilState
* GetDepthStencilState();
25
inline
ID3D11DepthStencilState* GetDXDepthStencilState();
26
27
// Enable the depth-stencil state.
28
void
Enable(ID3D11DeviceContext* context);
29
30
private
:
31
// Conversions from GTEngine values to DX11 values.
32
static
D3D11_DEPTH_WRITE_MASK
const
msWriteMask[];
33
static
D3D11_COMPARISON_FUNC
const
msComparison[];
34
static
D3D11_STENCIL_OP
const
msOperation[];
35
};
36
37
inline
DepthStencilState
*
DX11DepthStencilState::GetDepthStencilState
()
38
{
39
return
static_cast<
DepthStencilState
*
>
(mGTObject);
40
}
41
42
inline
ID3D11DepthStencilState*
DX11DepthStencilState::GetDXDepthStencilState
()
43
{
44
return
static_cast<
ID3D11DepthStencilState*
>
(mDXObject);
45
}
46
47
}
gte::DepthStencilState
Definition:
GteDepthStencilState.h:15
GteDX11DrawingState.h
gte::DX11DepthStencilState::GetDepthStencilState
DepthStencilState * GetDepthStencilState()
Definition:
GteDX11DepthStencilState.h:37
gte::DX11DepthStencilState::GetDXDepthStencilState
ID3D11DepthStencilState * GetDXDepthStencilState()
Definition:
GteDX11DepthStencilState.h:42
gte::GraphicsObject
Definition:
GteGraphicsObject.h:115
gte
Definition:
GLX/GteWICFileIO.h:16
gte::DX11DepthStencilState
Definition:
GteDX11DepthStencilState.h:16
gte::DX11DrawingState
Definition:
GteDX11DrawingState.h:16
GteDepthStencilState.h
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59