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

lsg::CDirectX11StandardTexture Class Reference

A standard DirectX 11 texture. More...

#include <LSGDirectX11StandardTexture.h>

Inheritance diagram for lsg::CDirectX11StandardTexture:
lsg::CTextureBase lsg::CRenderTargetInterface lsg::CStandardTexture

List of all members.

Public Member Functions

virtual LSBOOL LSE_CALL Activate (LSUINT32 _ui32Slot)

Protected Member Functions

LSBOOL LSE_CALL CreateApiTexture ()
LSVOID LSE_CALL ResetApi ()

Static Protected Member Functions

static LSVOID LSE_CALL CopyTexelsToDirect3d11Texture (D3D11_MAPPED_SUBRESOURCE &_msBuffer, const CImage &_iTexels)

Protected Attributes

CImage m_iTexels
ID3D11Texture2D * m_ptTexture
ID3D11RenderTargetView * m_rtvRenderTargetView
ID3D11ShaderResourceView * m_psrvShaderView

Friends

class CDirectX11CubeTexture

Detailed Description

A standard DirectX 11 texture.

Class CDirectX11StandardTexture Description: A standard DirectX 11 texture.


Member Function Documentation

virtual LSBOOL LSE_CALL lsg::CDirectX11StandardTexture::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.

static LSVOID LSE_CALL lsg::CDirectX11StandardTexture::CopyTexelsToDirect3d11Texture ( D3D11_MAPPED_SUBRESOURCE &  _msBuffer,
const CImage &  _iTexels 
) [static, protected]

Fill a D3D11_MAPPED_TEXTURE2D object with the given texel data.

Parameters:
_msBufferThe texture resource to fill with the given texture data.
_iTexelsThe texel data to used to fill the given resource.
LSBOOL LSE_CALL lsg::CDirectX11StandardTexture::CreateApiTexture ( ) [protected]

Create a DirectX 11 texture and fill it with our texel data. Mipmaps are generated if necessary.

Returns:
Returns tue if the creation and filling of the texture succeeds. False indicates a resource error.
LSVOID LSE_CALL lsg::CDirectX11StandardTexture::ResetApi ( ) [protected]

Resets the API resources only.


Member Data Documentation

Texel data.

ID3D11ShaderResourceView* lsg::CDirectX11StandardTexture::m_psrvShaderView [protected]

The shader resource view.

ID3D11Texture2D* lsg::CDirectX11StandardTexture::m_ptTexture [protected]

The actual texure resource.

ID3D11RenderTargetView* lsg::CDirectX11StandardTexture::m_rtvRenderTargetView [protected]

The render target view.


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