Ocular Engine
D3D11Viewport.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_D3D11_GRAPHICS_VIEWPORT__H__
19 #define __H__OCULAR_D3D11_GRAPHICS_VIEWPORT__H__
20 
21 #include "Graphics/Viewport.hpp"
22 #include <d3d11.h>
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Graphics
37  {
41  class D3D11Viewport : public Viewport
42  {
43  public:
44 
45  D3D11Viewport(ID3D11DeviceContext* context, float x, float y, float width, float height, float minDepth = 0.0f, float maxDepth = 1.0f);
46  virtual ~D3D11Viewport();
47 
48  virtual void bind() override;
49 
50  protected:
51 
52  ID3D11DeviceContext* m_D3DDeviceContext;
53  D3D11_VIEWPORT m_D3DViewport;
54 
55  private:
56  };
57  }
61 }
66 //------------------------------------------------------------------------------------------
67 
68 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: Viewport.hpp:40
Definition: D3D11Viewport.hpp:41