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

lsg::CDirectX11FloatTexture Class Reference

A floating-point texture made to work with DirectX 11. More...

#include <LSGDirectX11FloatTexture.h>

Inheritance diagram for lsg::CDirectX11FloatTexture:
lsg::CTextureBase lsg::CRenderTargetInterface

List of all members.

Public Member Functions

virtual LSBOOL LSE_CALL Activate (LSUINT32 _ui32Slot)
LSVOID LSE_CALL DeActivate ()
virtual LSBOOL LSE_CALL SetsColorAutomatically () const

Protected Member Functions

LSBOOL LSE_CALL CreateApiTexture ()
virtual LSBOOL LSE_CALL SetAsDepthStencilRenderTarget () const
virtual LSVOID LSE_CALL EndAsRenderTarget () const
LSVOID LSE_CALL ResetApi ()

Protected Attributes

ID3D11Texture2D * m_pt2tTexture
ID3D11DepthStencilView * m_pdsvView
ID3D11ShaderResourceView * m_psrvResourceView
LSUINT32 m_ui32LastSlot

Detailed Description

A floating-point texture made to work with DirectX 11.

Class CDirectX11FloatTexture Description: A floating-point texture made to work with DirectX 11.


Member Function Documentation

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

Activate this texture in a given slot.

Parameters:
_ui32SlotSlot in which to place this texture.
Returns:
Returns true if the texture is activated successfully.

Reimplemented from lsg::CTextureBase.

LSBOOL LSE_CALL lsg::CDirectX11FloatTexture::CreateApiTexture ( ) [protected]

Creates a Direct3D 11 depth texture.

Returns:
Returns true if the creation of the texture succeeds. False indicates a resource error.
LSVOID LSE_CALL lsg::CDirectX11FloatTexture::DeActivate ( )

Remove this texture from the last slot in which it was placed.

virtual LSVOID LSE_CALL lsg::CDirectX11FloatTexture::EndAsRenderTarget ( ) const [protected, virtual]

End its term as a render target.

Reimplemented from lsg::CRenderTargetInterface.

LSVOID LSE_CALL lsg::CDirectX11FloatTexture::ResetApi ( ) [protected]

Reset the API members, deleting the API texture.

virtual LSBOOL LSE_CALL lsg::CDirectX11FloatTexture::SetAsDepthStencilRenderTarget ( ) const [protected, virtual]

Activate as a depth/stencil render target.

Returns:
Returns true if it is ready to be used as a render target.

Reimplemented from lsg::CRenderTargetInterface.

virtual LSBOOL LSE_CALL lsg::CDirectX11FloatTexture::SetsColorAutomatically ( ) const [virtual]

If this render target is a depth target and no color targets have been specified (in the render target manager), the render target manager will query the depth target to ask if it has automatically set color target 0. If so, this function should return true.

Returns:
Return true if this is a depth render target that automatically sets a color target in slot 0.

Reimplemented from lsg::CRenderTargetInterface.


Member Data Documentation

ID3D11DepthStencilView* lsg::CDirectX11FloatTexture::m_pdsvView [protected]

The view for this render target, needed in order to access the texture data.

ID3D11ShaderResourceView* lsg::CDirectX11FloatTexture::m_psrvResourceView [protected]

The shader resource view.

ID3D11Texture2D* lsg::CDirectX11FloatTexture::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.

Last activated slot.


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