|
"L. Spiro Engine"
|
A standard DirectX 11 texture. More...
#include <LSGDirectX11StandardTexture.h>
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 |
A standard DirectX 11 texture.
Class CDirectX11StandardTexture Description: A standard DirectX 11 texture.
| virtual LSBOOL LSE_CALL lsg::CDirectX11StandardTexture::Activate | ( | LSUINT32 | _ui32Slot | ) | [virtual] |
Activate this texture in a given slot.
| _ui32Slot | Slot in which to place this texture. |
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.
| _msBuffer | The texture resource to fill with the given texture data. |
| _iTexels | The 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.
| LSVOID LSE_CALL lsg::CDirectX11StandardTexture::ResetApi | ( | ) | [protected] |
Resets the API resources only.
CImage lsg::CDirectX11StandardTexture::m_iTexels [protected] |
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.
1.7.3