Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
GteRasterizerState.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/GteDrawingState.h
>
11
12
namespace
gte
13
{
14
15
class
GTE_IMPEXP
RasterizerState
:
public
DrawingState
16
{
17
public
:
18
enum
GTE_IMPEXP
FillMode
19
{
20
FILL_SOLID
,
21
FILL_WIREFRAME
22
};
23
24
enum
GTE_IMPEXP
CullMode
25
{
26
CULL_NONE
,
27
CULL_FRONT
,
28
CULL_BACK
29
};
30
31
// Construction.
32
RasterizerState();
33
34
// Member access. The members are intended to be write-once before
35
// you create an associated graphics state.
36
FillMode
fillMode
;
// default: FILL_SOLID
37
CullMode
cullMode
;
// default: CULL_BACK
38
bool
frontCCW
;
// default: true
39
int
depthBias
;
// default: 0
40
float
depthBiasClamp
;
// default: 0
41
float
slopeScaledDepthBias
;
// default: 0
42
bool
enableDepthClip
;
// default: true
43
bool
enableScissor
;
// default: false
44
bool
enableMultisample
;
// default: false
45
bool
enableAntialiasedLine
;
// default: false
46
};
47
48
}
CULL_NONE
CULL_NONE
Definition:
GteRasterizerState.h:26
gte::RasterizerState::frontCCW
bool frontCCW
Definition:
GteRasterizerState.h:38
gte::DrawingState
Definition:
GteDrawingState.h:15
gte::RasterizerState
Definition:
GteRasterizerState.h:15
gte::RasterizerState::cullMode
CullMode cullMode
Definition:
GteRasterizerState.h:37
gte::RasterizerState::enableDepthClip
bool enableDepthClip
Definition:
GteRasterizerState.h:42
FILL_SOLID
FILL_SOLID
Definition:
GteRasterizerState.h:20
gte
Definition:
GLX/GteWICFileIO.h:16
CULL_FRONT
CULL_FRONT
Definition:
GteRasterizerState.h:26
gte::RasterizerState::enableAntialiasedLine
bool enableAntialiasedLine
Definition:
GteRasterizerState.h:45
gte::RasterizerState::fillMode
FillMode fillMode
Definition:
GteRasterizerState.h:36
gte::RasterizerState::depthBiasClamp
float depthBiasClamp
Definition:
GteRasterizerState.h:40
gte::RasterizerState::depthBias
int depthBias
Definition:
GteRasterizerState.h:39
gte::RasterizerState::enableScissor
bool enableScissor
Definition:
GteRasterizerState.h:43
gte::RasterizerState::slopeScaledDepthBias
float slopeScaledDepthBias
Definition:
GteRasterizerState.h:41
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
gte::RasterizerState::enableMultisample
bool enableMultisample
Definition:
GteRasterizerState.h:44
GteDrawingState.h
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01