Files
LifeProject/LifeGraphics/render/dx11/IDepthStencilState11.h
T

31 lines
625 B
C++
Raw Normal View History

2025-05-13 02:46:21 +03:00
#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__