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 
11 
12 namespace gte
13 {
14 
16 {
17 public:
18  enum GTE_IMPEXP WriteMask
19  {
21  MASK_ALL
22  };
23 
24  enum GTE_IMPEXP Comparison
25  {
27  LESS,
28  EQUAL,
29  LESS_EQUAL,
30  GREATER,
31  NOT_EQUAL,
33  ALWAYS
34  };
35 
36  enum GTE_IMPEXP Operation
37  {
39  OP_ZERO,
40  OP_REPLACE,
43  OP_INVERT,
44  OP_INCR,
45  OP_DECR
46  };
47 
49  {
50  Operation fail;
51  Operation depthFail;
52  Operation pass;
53  Comparison comparison;
54  };
55 
56  // Construction.
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 }
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59