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>
10 using namespace gte;
11 
12 
14  :
15  enableAlphaToCoverage(false),
16  enableIndependentBlend(false),
17  blendColor({ 0.0f, 0.0f, 0.0f, 0.0f }),
18  sampleMask(0xFFFFFFFFu)
19 {
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 
OP_ADD
Definition: GteBlendState.h:42
GraphicsObjectType mType
GLenum target
Definition: glcorearb.h:1662
BM_ONE
Definition: GteBlendState.h:21
BM_ZERO
Definition: GteBlendState.h:21
GT_BLEND_STATE
unsigned int sampleMask
Definition: GteBlendState.h:84


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