GteGL4BlendState.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/GteBlendState.h>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // Construction.
20  GL4BlendState(BlendState const* blendState);
21  static std::shared_ptr<GEObject> Create(void* unused, GraphicsObject const* object);
22 
23  // Member access.
24  inline BlendState* GetBlendState();
25 
26  // Enable the blend state.
27  void Enable();
28 
29 private:
30  struct Target
31  {
43  };
44 
49  unsigned int mSampleMask;
50 
51  // Conversions from GTEngine values to GL4 values.
52  static GLenum const msMode[];
53  static GLenum const msOperation[];
54 };
55 
57 {
58  return static_cast<BlendState*>(mGTObject);
59 }
60 
61 }
BlendState * GetBlendState()
unsigned char GLboolean
Definition: glcorearb.h:90
Vector4< float > mBlendColor
unsigned int GLenum
Definition: glcorearb.h:83
unsigned int mSampleMask
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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