GteDX11RasterizerState.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 
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // Construction.
20  DX11RasterizerState(ID3D11Device* device, RasterizerState const* rasterizerState);
21  static std::shared_ptr<GEObject> Create(void* device, GraphicsObject const* object);
22 
23  // Member access.
24  inline RasterizerState* GetRasterizerState();
25  inline ID3D11RasterizerState* GetDXRasterizerState();
26 
27  // Enable the rasterizer state.
28  void Enable(ID3D11DeviceContext* context);
29 
30 private:
31  // Conversions from GTEngine values to DX11 values.
32  static D3D11_FILL_MODE const msFillMode[];
33  static D3D11_CULL_MODE const msCullMode[];
34 };
35 
37 {
38  return static_cast<RasterizerState*>(mGTObject);
39 }
40 
41 inline ID3D11RasterizerState* DX11RasterizerState::GetDXRasterizerState()
42 {
43  return static_cast<ID3D11RasterizerState*>(mDXObject);
44 }
45 
46 }
RasterizerState * GetRasterizerState()
ID3D11RasterizerState * GetDXRasterizerState()
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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