"L. Spiro Engine"
|
A render target designed to interface with Direct3D 11. More...
#include <LSGDirectX11RenderTarget.h>
Public Member Functions | |
virtual LSBOOL LSE_CALL | Activate (LSUINT32 _ui32Slot) |
Protected Member Functions | |
LSVOID LSE_CALL | ResetApi () |
LSBOOL LSE_CALL | CreateApiRenderTarget () |
virtual LSBOOL LSE_CALL | SetAsColorRenderTarget (LSUINT32 _ui32Slot) const |
virtual LSVOID LSE_CALL | EndAsRenderTarget () const |
Protected Attributes | |
ID3D11Texture2D * | m_pt2tTexture |
ID3D11RenderTargetView * | m_prtvTargetView |
ID3D11ShaderResourceView * | m_psrvResourceView |
Friends | |
class | CDirectX11RenderTargetManager |
A render target designed to interface with Direct3D 11.
Class CDirectX11RenderTarget Description: A render target designed to interface with Direct3D 11.
virtual LSBOOL LSE_CALL lsg::CDirectX11RenderTarget::Activate | ( | LSUINT32 | _ui32Slot | ) | [virtual] |
Activate this render target in a given slot.
_ui32Slot | Slot in which to place this render target. |
LSBOOL LSE_CALL lsg::CDirectX11RenderTarget::CreateApiRenderTarget | ( | ) | [protected] |
Create the Direct3D 11 API resource(s).
virtual LSVOID LSE_CALL lsg::CDirectX11RenderTarget::EndAsRenderTarget | ( | ) | const [protected, virtual] |
End its term as a render target.
Reimplemented from lsg::CRenderTargetInterface.
LSVOID LSE_CALL lsg::CDirectX11RenderTarget::ResetApi | ( | ) | [protected] |
Reset the resources related to the Direct3D 11 API.
virtual LSBOOL LSE_CALL lsg::CDirectX11RenderTarget::SetAsColorRenderTarget | ( | LSUINT32 | _ui32Slot | ) | const [protected, virtual] |
Activate this texture as a render target.
_ui32Slot | The color slot into which to activate the render target. |
Reimplemented from lsg::CRenderTargetInterface.
ID3D11RenderTargetView* lsg::CDirectX11RenderTarget::m_prtvTargetView [protected] |
The target view for this render target.
ID3D11ShaderResourceView* lsg::CDirectX11RenderTarget::m_psrvResourceView [protected] |
The shader resource view.
ID3D11Texture2D* lsg::CDirectX11RenderTarget::m_pt2tTexture [protected] |
The texture containing the surface we use as our render target. We use a texture rather than a plain surface because a plain surface does not copy color keys and cannot be set as a readable texture target.