Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
GteBlendState.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/GteBlendState.h
>
10
using namespace
gte
;
11
12
13
BlendState::BlendState
()
14
:
15
enableAlphaToCoverage(false),
16
enableIndependentBlend(false),
17
blendColor({ 0.0f, 0.0f, 0.0f, 0.0f }),
18
sampleMask
(0xFFFFFFFFu)
19
{
20
mType
=
GT_BLEND_STATE
;
21
22
for
(
int
i = 0; i <
NUM_TARGETS
; ++i)
23
{
24
Target
& trg =
target
[i];
25
trg.
enable
=
false
;
26
trg.
srcColor
=
BM_ONE
;
27
trg.
dstColor
=
BM_ZERO
;
28
trg.
opColor
=
OP_ADD
;
29
trg.
srcAlpha
=
BM_ONE
;
30
trg.
dstAlpha
=
BM_ZERO
;
31
trg.
opAlpha
=
OP_ADD
;
32
trg.
mask
= CW_ENABLE_ALL;
33
}
34
}
35
gte::BlendState::BlendState
BlendState()
Definition:
GteBlendState.cpp:13
OP_ADD
OP_ADD
Definition:
GteBlendState.h:42
gte::BlendState::Target::enable
bool enable
Definition:
GteBlendState.h:65
gte::BlendState::Target::opAlpha
Operation opAlpha
Definition:
GteBlendState.h:71
GTEnginePCH.h
gte::GraphicsObject::mType
GraphicsObjectType mType
Definition:
GteGraphicsObject.h:156
gte::BlendState::Target::mask
unsigned char mask
Definition:
GteBlendState.h:72
gte::BlendState::Target::opColor
Operation opColor
Definition:
GteBlendState.h:68
target
GLenum target
Definition:
glcorearb.h:1662
BM_ONE
BM_ONE
Definition:
GteBlendState.h:21
gte::BlendState::NUM_TARGETS
Definition:
GteBlendState.h:60
gte::BlendState::Target::dstColor
Mode dstColor
Definition:
GteBlendState.h:67
gte
Definition:
GLX/GteWICFileIO.h:16
gte::BlendState::Target::srcAlpha
Mode srcAlpha
Definition:
GteBlendState.h:69
gte::BlendState::Target::srcColor
Mode srcColor
Definition:
GteBlendState.h:66
BM_ZERO
BM_ZERO
Definition:
GteBlendState.h:21
GT_BLEND_STATE
GT_BLEND_STATE
Definition:
GteGraphicsObject.h:79
gte::BlendState::sampleMask
unsigned int sampleMask
Definition:
GteBlendState.h:84
gte::BlendState::Target::dstAlpha
Mode dstAlpha
Definition:
GteBlendState.h:70
GteBlendState.h
gte::BlendState::Target
Definition:
GteBlendState.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59