38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
////////////////////////////////////////////////////////////////////////////////
|
|
// Filename: rendertextureclass.h
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
#ifndef _RENDERTEXTURECLASS_H_
|
|
#define _RENDERTEXTURECLASS_H_
|
|
|
|
|
|
//////////////
|
|
// INCLUDES //
|
|
//////////////
|
|
#include <d3d11.h>
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Class name: RenderTextureClass
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
class RenderTextureClass
|
|
{
|
|
public:
|
|
RenderTextureClass();
|
|
RenderTextureClass(const RenderTextureClass&);
|
|
~RenderTextureClass();
|
|
|
|
bool Initialize(ID3D11Device*, int, int);
|
|
void Shutdown();
|
|
|
|
void SetRenderTarget(ID3D11DeviceContext*, ID3D11DepthStencilView*);
|
|
void ClearRenderTarget(ID3D11DeviceContext*, ID3D11DepthStencilView*, float, float, float, float);
|
|
ID3D11ShaderResourceView* GetShaderResourceView();
|
|
ID3D11Texture2D* GetTexture();
|
|
|
|
private:
|
|
ID3D11Texture2D* m_renderTargetTexture;
|
|
ID3D11RenderTargetView* m_renderTargetView;
|
|
ID3D11ShaderResourceView* m_shaderResourceView;
|
|
};
|
|
|
|
#endif |