33 lines
557 B
C++
33 lines
557 B
C++
#ifndef IBlendState11_h__
|
|||
|
|
#define IBlendState11_h__
|
||
|
|
|
||
|
|
#include "render/IBlendState.h"
|
||
|
|
|
||
|
|
#include <d3d11.h>
|
||
|
|
#include <dxgi.h>
|
||
|
|
#include <d3dx11.h>
|
||
|
|
|
||
|
|
namespace LifeGraphics
|
||
|
|
{
|
||
|
|
class IBlendState11 : public IBlendState
|
||
|
|
{
|
||
|
|
private:
|
||
|
|
ID3D11Device* device;
|
||
|
|
ID3D11DeviceContext* context;
|
||
|
|
|
||
|
|
public:
|
||
|
|
ID3D11BlendState* state;
|
||
|
|
IBlendState11(ID3D11Device* _device, ID3D11BlendState* _state)
|
||
|
|
{
|
||
|
|
device = _device;
|
||
|
|
device->GetImmediateContext(&context);
|
||
|
|
state = _state;
|
||
|
|
}
|
||
|
|
~IBlendState11()
|
||
|
|
{
|
||
|
|
SAFE_RELEASE(state);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif // IBlendState11_h__
|