Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
GteDepthStencilState.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.0 (2016/06/19)
7
8
#include <
GTEnginePCH.h
>
9
#include <
Graphics/GteDepthStencilState.h
>
10
using namespace
gte
;
11
12
13
DepthStencilState::DepthStencilState
()
14
:
15
depthEnable(true),
16
writeMask(MASK_ALL),
17
comparison(
LESS_EQUAL
),
18
stencilEnable(false),
19
stencilReadMask(0xFF),
20
stencilWriteMask(0xFF),
21
reference
(0)
22
{
23
mType
=
GT_DEPTH_STENCIL_STATE
;
24
25
frontFace
.
fail
=
OP_KEEP
;
26
frontFace
.
depthFail
=
OP_KEEP
;
27
frontFace
.
pass
=
OP_KEEP
;
28
frontFace
.
comparison
= ALWAYS;
29
backFace
.
fail
=
OP_KEEP
;
30
backFace
.
depthFail
=
OP_KEEP
;
31
backFace
.
pass
=
OP_KEEP
;
32
backFace
.
comparison
= ALWAYS;
33
}
34
reference
GLint reference
Definition:
glext.h:9678
GTEnginePCH.h
gte::GraphicsObject::mType
GraphicsObjectType mType
Definition:
GteGraphicsObject.h:156
gte::DepthStencilState::DepthStencilState
DepthStencilState()
Definition:
GteDepthStencilState.cpp:13
gte::DepthStencilState::Face::fail
Operation fail
Definition:
GteDepthStencilState.h:50
gte::DepthStencilState::backFace
Face backFace
Definition:
GteDepthStencilState.h:68
LESS_EQUAL
LESS_EQUAL
Definition:
GteDepthStencilState.h:26
gte
Definition:
GLX/GteWICFileIO.h:16
OP_KEEP
OP_KEEP
Definition:
GteDepthStencilState.h:38
gte::DepthStencilState::Face::depthFail
Operation depthFail
Definition:
GteDepthStencilState.h:51
gte::DepthStencilState::Face::pass
Operation pass
Definition:
GteDepthStencilState.h:52
GteDepthStencilState.h
gte::DepthStencilState::frontFace
Face frontFace
Definition:
GteDepthStencilState.h:67
GT_DEPTH_STENCIL_STATE
GT_DEPTH_STENCIL_STATE
Definition:
GteGraphicsObject.h:79
gte::DepthStencilState::Face::comparison
Comparison comparison
Definition:
GteDepthStencilState.h:53
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59