Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
GteDepthStencilState.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.1 (2016/10/02)
7
8
#pragma once
9
10
#include <
Graphics/GteDrawingState.h
>
11
12
namespace
gte
13
{
14
15
class
GTE_IMPEXP
DepthStencilState
:
public
DrawingState
16
{
17
public
:
18
enum
GTE_IMPEXP
WriteMask
19
{
20
MASK_ZERO
,
21
MASK_ALL
22
};
23
24
enum
GTE_IMPEXP
Comparison
25
{
26
NEVER
,
27
LESS
,
28
EQUAL
,
29
LESS_EQUAL
,
30
GREATER
,
31
NOT_EQUAL
,
32
GREATER_EQUAL
,
33
ALWAYS
34
};
35
36
enum
GTE_IMPEXP
Operation
37
{
38
OP_KEEP
,
39
OP_ZERO
,
40
OP_REPLACE
,
41
OP_INCR_SAT
,
42
OP_DECR_SAT
,
43
OP_INVERT
,
44
OP_INCR
,
45
OP_DECR
46
};
47
48
struct
GTE_IMPEXP
Face
49
{
50
Operation
fail
;
51
Operation
depthFail
;
52
Operation
pass
;
53
Comparison
comparison
;
54
};
55
56
// Construction.
57
DepthStencilState
();
58
59
// Member access. The members are intended to be write-once before
60
// you create an associated graphics state.
61
bool
depthEnable
;
// default: true
62
WriteMask
writeMask
;
// default: MASK_ALL
63
Comparison
comparison
;
// default: LESS_EQUAL
64
bool
stencilEnable
;
// default: false
65
unsigned
char
stencilReadMask
;
// default: 0xFF
66
unsigned
char
stencilWriteMask
;
// default: 0xFF
67
Face
frontFace
;
// default: (KEEP,KEEP,KEEP,ALWAYS)
68
Face
backFace
;
// default: (KEEP,KEEP,KEEP,ALWAYS)
69
unsigned
int
reference
;
// default: 0
70
};
71
72
}
gte::DepthStencilState::writeMask
WriteMask writeMask
Definition:
GteDepthStencilState.h:62
OP_ZERO
OP_ZERO
Definition:
GteDepthStencilState.h:38
gte::DepthStencilState
Definition:
GteDepthStencilState.h:15
gte::DepthStencilState::stencilWriteMask
unsigned char stencilWriteMask
Definition:
GteDepthStencilState.h:66
GREATER
GREATER
Definition:
GteDepthStencilState.h:26
OP_REPLACE
OP_REPLACE
Definition:
GteDepthStencilState.h:38
gte::DrawingState
Definition:
GteDrawingState.h:15
EQUAL
EQUAL
Definition:
GteDepthStencilState.h:26
OP_DECR_SAT
OP_DECR_SAT
Definition:
GteDepthStencilState.h:38
LESS
LESS
Definition:
GteDepthStencilState.h:26
gte::DepthStencilState::Face::fail
Operation fail
Definition:
GteDepthStencilState.h:50
gte::DepthStencilState::comparison
Comparison comparison
Definition:
GteDepthStencilState.h:63
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
OP_INCR_SAT
OP_INCR_SAT
Definition:
GteDepthStencilState.h:38
gte::DepthStencilState::stencilEnable
bool stencilEnable
Definition:
GteDepthStencilState.h:64
gte::DepthStencilState::Face::depthFail
Operation depthFail
Definition:
GteDepthStencilState.h:51
NOT_EQUAL
NOT_EQUAL
Definition:
GteDepthStencilState.h:26
gte::DepthStencilState::reference
unsigned int reference
Definition:
GteDepthStencilState.h:69
gte::DepthStencilState::Face::pass
Operation pass
Definition:
GteDepthStencilState.h:52
gte::DepthStencilState::stencilReadMask
unsigned char stencilReadMask
Definition:
GteDepthStencilState.h:65
gte::DepthStencilState::Face
Definition:
GteDepthStencilState.h:48
gte::DepthStencilState::depthEnable
bool depthEnable
Definition:
GteDepthStencilState.h:61
OP_INCR
OP_INCR
Definition:
GteDepthStencilState.h:38
GREATER_EQUAL
GREATER_EQUAL
Definition:
GteDepthStencilState.h:26
OP_INVERT
OP_INVERT
Definition:
GteDepthStencilState.h:38
MASK_ZERO
MASK_ZERO
Definition:
GteDepthStencilState.h:20
NEVER
NEVER
Definition:
GteDepthStencilState.h:26
gte::DepthStencilState::frontFace
Face frontFace
Definition:
GteDepthStencilState.h:67
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
gte::DepthStencilState::Face::comparison
Comparison comparison
Definition:
GteDepthStencilState.h:53
GteDrawingState.h
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59