31 lines
625 B
C++
31 lines
625 B
C++
#ifndef IDepthStencilState11_h__
|
|
#define IDepthStencilState11_h__
|
|
|
|
#include "render/IDepthStencilState.h"
|
|
|
|
#include <d3d11.h>
|
|
#include <dxgi.h>
|
|
#include <d3dx11.h>
|
|
|
|
namespace LifeGraphics
|
|
{
|
|
class IDepthStencilState11 : public IDepthStencilState
|
|
{
|
|
private:
|
|
ID3D11Device* device;
|
|
ID3D11DeviceContext* context;
|
|
public:
|
|
ID3D11DepthStencilState* state;
|
|
IDepthStencilState11(ID3D11Device* _device, ID3D11DepthStencilState* _state)
|
|
{
|
|
device = _device;
|
|
device->GetImmediateContext(&context);
|
|
state = _state;
|
|
}
|
|
~IDepthStencilState11()
|
|
{
|
|
SAFE_RELEASE(state);
|
|
}
|
|
};
|
|
}
|
|
#endif // IDepthStencilState11_h__
|