Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
GL4
GteGL4DepthStencilState.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/GL4/GteGL4DrawingState.h
>
12
13
namespace
gte
14
{
15
16
class
GTE_IMPEXP
GL4DepthStencilState
:
public
GL4DrawingState
17
{
18
public
:
19
// Construction.
20
GL4DepthStencilState
(
DepthStencilState
const
* depthStencilState);
21
static
std::shared_ptr<GEObject> Create(
void
* unused,
GraphicsObject
const
*
object
);
22
23
// Member access.
24
inline
DepthStencilState
* GetDepthStencilState();
25
26
// Enable the depth-stencil state.
27
void
Enable();
28
29
private
:
30
struct
Face
31
{
32
GLenum
onFail
;
33
GLenum
onZFail
;
34
GLenum
onZPass
;
35
GLenum
comparison
;
36
};
37
38
GLboolean
mDepthEnable
;
39
GLboolean
mWriteMask
;
40
GLenum
mComparison
;
41
GLboolean
mStencilEnable
;
42
GLuint
mStencilReadMask
;
43
GLuint
mStencilWriteMask
;
44
Face
mFrontFace
;
45
Face
mBackFace
;
46
GLuint
mReference
;
47
48
// Conversions from GTEngine values to GL4 values.
49
static
GLboolean
const
msWriteMask[];
50
static
GLenum
const
msComparison[];
51
static
GLenum
const
msOperation[];
52
};
53
54
inline
DepthStencilState
*
GL4DepthStencilState::GetDepthStencilState
()
55
{
56
return
static_cast<
DepthStencilState
*
>
(mGTObject);
57
}
58
59
}
gte::GL4DepthStencilState::mStencilWriteMask
GLuint mStencilWriteMask
Definition:
GteGL4DepthStencilState.h:43
gte::GL4DrawingState
Definition:
GteGL4DrawingState.h:16
gte::GL4DepthStencilState::mBackFace
Face mBackFace
Definition:
GteGL4DepthStencilState.h:45
GLuint
unsigned int GLuint
Definition:
glcorearb.h:89
gte::DepthStencilState
Definition:
GteDepthStencilState.h:15
gte::GL4DepthStencilState::GetDepthStencilState
DepthStencilState * GetDepthStencilState()
Definition:
GteGL4DepthStencilState.h:54
GLboolean
unsigned char GLboolean
Definition:
glcorearb.h:90
gte::GL4DepthStencilState::mFrontFace
Face mFrontFace
Definition:
GteGL4DepthStencilState.h:44
gte::GL4DepthStencilState::mReference
GLuint mReference
Definition:
GteGL4DepthStencilState.h:46
gte::GL4DepthStencilState::Face::comparison
GLenum comparison
Definition:
GteGL4DepthStencilState.h:35
gte::GL4DepthStencilState::mDepthEnable
GLboolean mDepthEnable
Definition:
GteGL4DepthStencilState.h:38
gte::GraphicsObject
Definition:
GteGraphicsObject.h:115
GLenum
unsigned int GLenum
Definition:
glcorearb.h:83
gte
Definition:
GLX/GteWICFileIO.h:16
gte::GL4DepthStencilState::Face::onZPass
GLenum onZPass
Definition:
GteGL4DepthStencilState.h:34
gte::GL4DepthStencilState::Face::onZFail
GLenum onZFail
Definition:
GteGL4DepthStencilState.h:33
gte::GL4DepthStencilState::mStencilReadMask
GLuint mStencilReadMask
Definition:
GteGL4DepthStencilState.h:42
gte::GL4DepthStencilState::mWriteMask
GLboolean mWriteMask
Definition:
GteGL4DepthStencilState.h:39
gte::GL4DepthStencilState::Face::onFail
GLenum onFail
Definition:
GteGL4DepthStencilState.h:32
GteGL4DrawingState.h
gte::GL4DepthStencilState
Definition:
GteGL4DepthStencilState.h:16
GteDepthStencilState.h
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
gte::GL4DepthStencilState::Face
Definition:
GteGL4DepthStencilState.h:30
gte::GL4DepthStencilState::mComparison
GLenum mComparison
Definition:
GteGL4DepthStencilState.h:40
gte::GL4DepthStencilState::mStencilEnable
GLboolean mStencilEnable
Definition:
GteGL4DepthStencilState.h:41
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00