"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Protected Attributes | Friends

lsg::CDirectX11RenderTarget Class Reference

A render target designed to interface with Direct3D 11. More...

#include <LSGDirectX11RenderTarget.h>

Inheritance diagram for lsg::CDirectX11RenderTarget:
lsg::CRenderTargetBase lsg::CRenderTargetInterface lsg::CColorRenderTarget

List of all members.

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

Detailed Description

A render target designed to interface with Direct3D 11.

Class CDirectX11RenderTarget Description: A render target designed to interface with Direct3D 11.


Member Function Documentation

virtual LSBOOL LSE_CALL lsg::CDirectX11RenderTarget::Activate ( LSUINT32  _ui32Slot) [virtual]

Activate this render target in a given slot.

Parameters:
_ui32SlotSlot in which to place this render target.
Returns:
Returns true if the render target is activated successfully.
LSBOOL LSE_CALL lsg::CDirectX11RenderTarget::CreateApiRenderTarget ( ) [protected]

Create the Direct3D 11 API resource(s).

Returns:
Returns false if the current format is not supported or if there are not enough resources available to perform the operation.
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.

Parameters:
_ui32SlotThe color slot into which to activate the render target.
Returns:
Returns true if the texture is ready to be used as a render target.

Reimplemented from lsg::CRenderTargetInterface.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator