Ocular Engine
D3D11IndexBuffer.hpp
1 
17 #pragma once
18 #ifndef __OCULAR_D3D11_INDEX_BUFFER__H__
19 #define __OCULAR_D3D11_INDEX_BUFFER__H__
20 
21 #include "Graphics/Mesh/IndexBuffer.hpp"
22 #include <d3d11.h>
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Graphics
37  {
42  {
43  public:
44 
45  D3D11IndexBuffer(ID3D11Device* device, ID3D11DeviceContext* context);
46  virtual ~D3D11IndexBuffer();
47 
48  virtual bool build() override;
49  virtual void bind() override;
50  virtual void unbind() override;
51 
52  ID3D11Buffer* getD3DIndexBuffer();
53 
54  protected:
55 
56  ID3D11Device* m_D3DDevice;
57  ID3D11DeviceContext* m_D3DDeviceContext;
58  ID3D11Buffer* m_D3DIndexBuffer;
59 
60  private:
61  };
62  }
66 }
71 //------------------------------------------------------------------------------------------
72 
73 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
virtual void bind() override
Definition: D3D11IndexBuffer.cpp:102
Definition: IndexBuffer.hpp:77
Definition: D3D11IndexBuffer.hpp:41
virtual bool build() override
Definition: D3D11IndexBuffer.cpp:54
virtual void unbind() override
Definition: D3D11IndexBuffer.cpp:126