This commit is contained in:
2014-01-28 21:01:37 +01:00
commit f14b733bd0
9 changed files with 446 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef Direct3D_h__
#define Direct3D_h__
#include <d3d11.h>
#include <d3dx11.h>
#include <d3dx10.h>
#pragma comment (lib, "d3d11.lib")
#pragma comment (lib, "d3dx11.lib")
#pragma comment (lib, "d3dx10.lib")
#include "Window.h"
class Direct3D
{
public:
Direct3D() { }
~Direct3D();
IDXGISwapChain* SwapChain;
ID3D11Device* Device;
ID3D11DeviceContext* DeviceContext;
ID3D11RenderTargetView* BackBuffer;
void Initialize(Window* window);
void Resize(int width, int height);
private:
Window* m_Window;
};
#endif // Direct3D_h__