GFXD3D11Cubemap
Engine/source/gfx/D3D11/gfxD3D11Cubemap.h
Public Friends
class
class
Private Attributes
bool
ID3D11DepthStencilView *
bool
ID3D11RenderTargetView *
mRTView [CubeFaces][MaxMipMaps]
ID3D11ShaderResourceView *
ID3D11Texture2D *
Public Functions
ID3D11Texture2D *
get2DTex()
ID3D11DepthStencilView *
ID3D11ShaderResourceView *
initDynamic(U32 texSize, GFXFormat faceFormat, U32 mipLevels)
create dynamic cubemap. mipLevels 0 is auto create mips, otherwise the value is how many mip levels you wish the cubemap to have
initStatic(DDSFile * dds)
Create a static cubemap from a DDS cubemap file.
initStatic(GFXTexHandle * faces)
Create a static cubemap from a list of 6 face textures.
bool
Returns if this cubemap has been initialized.
setToTexUnit(U32 tuNum)
Private Functions
The callback used to get texture events.
Detailed Description
Public Friends
Private Attributes
bool mAutoGenMips
ID3D11DepthStencilView * mDSView
bool mDynamic
GFXFormat mFaceFormat
ID3D11RenderTargetView * mRTView [CubeFaces][MaxMipMaps]
ID3D11ShaderResourceView * mSRView
U32 mTexSize
ID3D11Texture2D * mTexture
Public Functions
GFXD3D11Cubemap()
~GFXD3D11Cubemap()
get2DTex()
getDSView()
getFormat()
Reimplemented from: GFXCubemap
getRTView(U32 faceIdx, U32 mipIndex)
getSize()
Reimplemented from: GFXCubemap
getSRView()
initDynamic(U32 texSize, GFXFormat faceFormat, U32 mipLevels)
Reimplemented from: GFXCubemap
initStatic(DDSFile * dds)
Reimplemented from: GFXCubemap
initStatic(GFXTexHandle * faces)
Reimplemented from: GFXCubemap
isInitialized()
Reimplemented from: GFXCubemap
resurrect()
Reimplemented from: GFXResource
setToTexUnit(U32 tuNum)
Reimplemented from: GFXCubemap
zombify()
Reimplemented from: GFXResource
Private Functions
_onTextureEvent(GFXTexCallbackCode code)
The callback used to get texture events.
releaseSurfaces()