#include <OgreD3D9Texture.h>
Inheritance diagram for Ogre::D3D9Texture:
Public Methods | |
D3D9Texture (const String &name, TextureType texType, IDirect3DDevice9 *pD3DDevice, TextureUsage usage) | |
constructor 1 | |
D3D9Texture (const String &name, TextureType texType, IDirect3DDevice9 *pD3DDevice, uint width, uint height, uint numMips, PixelFormat format, TextureUsage usage) | |
constructor 2 | |
~D3D9Texture () | |
destructor | |
void | blitImage (const Image &src, const Image::Rect imgRect, const Image::Rect texRect) |
overriden from Texture | |
void | blitToTexture (const Image &src, unsigned uStartX, unsigned uStartY) |
overriden from Texture | |
void | copyToTexture (Texture *target) |
overriden from Texture | |
void | loadImage (const Image &img) |
overriden from Texture | |
void | load () |
overriden from Resource | |
void | unload () |
overriden from Resource | |
IDirect3DBaseTexture9 * | getTexture () |
retrieves a pointer to the actual texture | |
IDirect3DTexture9 * | getNormTexture () |
retrieves a pointer to the normal 1D/2D texture | |
IDirect3DCubeTexture9 * | getCubeTexture () |
retrieves a pointer to the cube texture | |
IDirect3DSurface9 * | getDepthStencil () |
retrieves a pointer to the Depth stencil | |
TextureType | getTextureType (void) const |
Gets the type of texture. | |
unsigned short | getNumMipMaps (void) const |
Gets the number of mipmaps to be used for this texture. | |
void | setNumMipMaps (unsigned short num) |
Sets the number of mipmaps to be used for this texture. | |
float | getGamma (void) const |
Returns the gamma adjustment factor applied to this texture. | |
void | setGamma (float g) |
Sets the gamma adjustment factor applied to this texture. | |
unsigned int | getHeight (void) const |
Returns the height of the texture. | |
unsigned int | getWidth (void) const |
Returns the width of the texture. | |
unsigned int | getDepth (void) const |
Returns the depth of the texture (only applicable for 3D textures). | |
std::pair< uint, uint > | getDimensions () const |
Returns both the width and height of the texture. | |
TextureUsage | getUsage () const |
Returns the TextureUsage indentifier for this Texture. | |
virtual void | loadRawData (const DataChunk &pData, ushort uWidth, ushort uHeight, PixelFormat eFormat) |
Loads the data from the raw memory area. | |
void | enable32Bit (bool setting=true) |
virtual PixelFormat | getFormat () const |
Returns the pixel format for the texture surface. | |
virtual bool | hasAlpha (void) const |
Returns true if the texture has an alpha layer. | |
virtual size_t | getSize (void) const |
Retrieves info about the size of the resource. | |
virtual void | touch (void) |
'Touches' the resource to indicate it has been used. | |
time_t | getLastAccess (void) const |
Gets the last time the resource was 'touched'. | |
const String & | getName (void) const |
Gets resource name. | |
ResourceHandle | getHandle (void) const |
bool | isLoaded (void) const |
Returns true if the Resource has been loaded, false otherwise. | |
virtual void | destroy () |
A method to make the resource delete itself. | |
Protected Attributes | |
unsigned long | mHeight |
unsigned long | mWidth |
unsigned long | mDepth |
unsigned short | mNumMipMaps |
float | mGamma |
TextureType | mTextureType |
PixelFormat | mFormat |
TextureUsage | mUsage |
unsigned short | mSrcBpp |
unsigned long | mSrcWidth |
unsigned long | mSrcHeight |
unsigned short | mFinalBpp |
bool | mHasAlpha |
String | mName |
ResourceHandle | mHandle |
bool | mIsLoaded |
time_t | mLastAccess |
size_t | mSize |
Private Methods | |
void | _loadCubeTex () |
internal method, load a cube texture | |
void | _loadNormTex () |
internal method, load a normal texture | |
void | _loadVolumeTex () |
internal method, load a volume texture | |
void | _createTex () |
internal method, create a blank texture | |
void | _createNormTex () |
internal method, create a blank normal 1D/2D texture | |
void | _createCubeTex () |
internal method, create a blank cube texture | |
D3DFORMAT | _chooseD3DFormat () |
internal method, return a D3D pixel format for texture creation | |
void | _getColorMasks (D3DFORMAT format, DWORD *pdwRed, DWORD *pdwGreen, DWORD *pdwBlue, DWORD *pdwAlpha, DWORD *pdwRGBBitCount) |
internal method, return the color masks for a given format | |
void | _copyMemoryToSurface (const unsigned char *pBuffer, IDirect3DSurface9 *pSurface) |
internal method, copy a memory block to the given surface | |
void | _blitImageToNormTex (const Image &srcImage) |
internal method, blits a given image to normal textures | |
void | _blitImagesToCubeTex (const Image srcImages[]) |
internal method, blits images to cube textures | |
void | _freeResources () |
internal method, free D3D9 resources | |
void | _initMembers () |
internal method, initialize member vars | |
void | _setDevice (IDirect3DDevice9 *pDev) |
internal method, set the device and fillIn the device caps | |
void | _constructCubeFaceNames (const String &name) |
internal method, construct full cube texture face names from a given string | |
void | _setSrcAttributes (unsigned long width, unsigned long height, unsigned long depth, PixelFormat format) |
internal method, set Texture class source image protected attributes | |
void | _setFinalAttributes (unsigned long width, unsigned long height, unsigned long depth, PixelFormat format) |
internal method, set Texture class final texture protected attributes | |
D3DTEXTUREFILTERTYPE | _getBestFilterMethod () |
internal method, return the best by hardware supported filter method | |
bool | _canAutoGenMipMaps (DWORD srcUsage, D3DRESOURCETYPE srcType, D3DFORMAT srcFormat) |
internal method, return true if the device/texture combination can auto gen. mip maps | |
void | _createDepthStencil () |
internal method, create a depth stencil for the render target texture | |
String | _getCubeFaceName (unsigned char face) const |
internal method, the cube map face name for the spec. face index | |
Static Private Methods | |
PixelFormat | _getPF (D3DFORMAT d3dPF) |
Create a depth buffer for our render target, it must be of the same format as other targets !!! . | |
D3DFORMAT | _getPF (PixelFormat ogrePF) |
internal method, convert Ogre pixel format to D3D9 pixel format | |
unsigned short | _getPFBpp (PixelFormat ogrePF) |
internal method, return the BPP for the specified format | |
Private Attributes | |
IDirect3DDevice9 * | mpDev |
D3DDevice pointer. | |
IDirect3D9 * | mpD3D |
D3D9 pointer. | |
IDirect3DTexture9 * | mpNormTex |
1D/2D normal texture pointer | |
IDirect3DCubeTexture9 * | mpCubeTex |
cubic texture pointer | |
IDirect3DVolumeTexture9 * | mpVolumeTex |
Volume texture. | |
IDirect3DSurface9 * | mpZBuff |
z-buffer for the render surface pointer | |
IDirect3DBaseTexture9 * | mpTex |
actual texture pointer | |
String | mCubeFaceNames [6] |
cube texture individual face names | |
D3DDEVICE_CREATION_PARAMETERS | mDevCreParams |
device creation parameters | |
D3DFORMAT | mBBPixelFormat |
back buffer pixel format | |
D3DCAPS9 | mDevCaps |
device capabilities pointer | |
bool | mAutoGenMipMaps |
|
constructor 1
Definition at line 40 of file OgreD3D9Texture.cpp. References _constructCubeFaceNames(), _initMembers(), _setDevice(), Ogre::Texture::getTextureType(), mAutoGenMipMaps, Ogre::Resource::mName, Ogre::Texture::mTextureType, Ogre::Texture::mUsage, Ogre::String, Ogre::TEX_TYPE_CUBE_MAP, Ogre::TextureType, and Ogre::TextureUsage. |
|
constructor 2
Definition at line 56 of file OgreD3D9Texture.cpp. References _constructCubeFaceNames(), _createTex(), _initMembers(), _setDevice(), _setSrcAttributes(), Ogre::Texture::getTextureType(), mAutoGenMipMaps, Ogre::Resource::mIsLoaded, Ogre::Resource::mName, Ogre::Texture::mNumMipMaps, Ogre::Texture::mTextureType, Ogre::Texture::mUsage, Ogre::PixelFormat, Ogre::String, Ogre::TEX_TYPE_CUBE_MAP, Ogre::TextureType, Ogre::TextureUsage, Ogre::TU_RENDERTARGET, and Ogre::uint. |
|
destructor
Definition at line 82 of file OgreD3D9Texture.cpp. References Ogre::Resource::isLoaded(), mpD3D, SAFE_RELEASE, and unload(). |
|
internal method, blits images to cube textures
Definition at line 1159 of file OgreD3D9Texture.cpp. References _chooseD3DFormat(), _copyMemoryToSurface(), _freeResources(), _getBestFilterMethod(), _getPF(), Except, Ogre::Image::getData(), Ogre::Texture::getFormat(), Ogre::Texture::getHeight(), Ogre::Image::getHeight(), Ogre::Texture::getWidth(), Ogre::Image::getWidth(), mpCubeTex, mpDev, mpTex, and SAFE_RELEASE. |
|
internal method, blits a given image to normal textures
Definition at line 1074 of file OgreD3D9Texture.cpp. References _chooseD3DFormat(), _copyMemoryToSurface(), _freeResources(), _getBestFilterMethod(), _getPF(), Except, Ogre::Image::getData(), Ogre::Image::getFormat(), Ogre::Image::getHeight(), Ogre::Image::getWidth(), mpDev, mpNormTex, mpTex, and SAFE_RELEASE. Referenced by loadImage(). |
|
internal method, return true if the device/texture combination can auto gen. mip maps
Definition at line 917 of file OgreD3D9Texture.cpp. References mBBPixelFormat, mDevCaps, mDevCreParams, mpD3D, and mpDev. Referenced by _createCubeTex(), and _createNormTex(). |
|
internal method, return a D3D pixel format for texture creation
Definition at line 1261 of file OgreD3D9Texture.cpp. References Except, Ogre::Texture::mFinalBpp, and Ogre::Texture::mHasAlpha. Referenced by _blitImagesToCubeTex(), _blitImageToNormTex(), _createCubeTex(), _createNormTex(), and blitToTexture(). |
|
internal method, construct full cube texture face names from a given string
Definition at line 812 of file OgreD3D9Texture.cpp. References _freeResources(), Except, mCubeFaceNames, and Ogre::String. Referenced by D3D9Texture(). |
|
internal method, copy a memory block to the given surface
Definition at line 979 of file OgreD3D9Texture.cpp. References _freeResources(), _getColorMasks(), Except, Ogre::Texture::mSrcBpp, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, and SAFE_RELEASE. Referenced by _blitImagesToCubeTex(), and _blitImageToNormTex(). |
|
internal method, create a blank cube texture
Definition at line 685 of file OgreD3D9Texture.cpp. References _canAutoGenMipMaps(), _chooseD3DFormat(), _createDepthStencil(), _freeResources(), _setFinalAttributes(), Except, mAutoGenMipMaps, mBBPixelFormat, mDevCaps, Ogre::Texture::mNumMipMaps, mpCubeTex, mpDev, mpTex, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, Ogre::Texture::mUsage, and Ogre::TU_RENDERTARGET. Referenced by _createTex(), and _loadCubeTex(). |
|
internal method, create a depth stencil for the render target texture
Definition at line 1276 of file OgreD3D9Texture.cpp. References _freeResources(), Except, mpDev, mpZBuff, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, SAFE_RELEASE, and Ogre::String. Referenced by _createCubeTex(), and _createNormTex(). |
|
internal method, create a blank normal 1D/2D texture
Definition at line 612 of file OgreD3D9Texture.cpp. References _canAutoGenMipMaps(), _chooseD3DFormat(), _createDepthStencil(), _freeResources(), _setFinalAttributes(), Except, mAutoGenMipMaps, mBBPixelFormat, mDevCaps, Ogre::Texture::mNumMipMaps, mpDev, mpNormTex, mpTex, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, Ogre::Texture::mUsage, and Ogre::TU_RENDERTARGET. Referenced by _createTex(), and loadImage(). |
|
internal method, create a blank texture
Definition at line 591 of file OgreD3D9Texture.cpp. References _createCubeTex(), _createNormTex(), _freeResources(), Except, Ogre::Texture::getTextureType(), Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, Ogre::TEX_TYPE_1D, Ogre::TEX_TYPE_2D, and Ogre::TEX_TYPE_CUBE_MAP. Referenced by D3D9Texture(), and load(). |
|
internal method, free D3D9 resources
Definition at line 387 of file OgreD3D9Texture.cpp. References mpCubeTex, mpNormTex, mpTex, mpZBuff, and SAFE_RELEASE. Referenced by _blitImagesToCubeTex(), _blitImageToNormTex(), _constructCubeFaceNames(), _copyMemoryToSurface(), _createCubeTex(), _createDepthStencil(), _createNormTex(), _createTex(), _loadCubeTex(), _loadNormTex(), _loadVolumeTex(), _setSrcAttributes(), blitToTexture(), load(), and unload(). |
|
internal method, return the best by hardware supported filter method
Definition at line 906 of file OgreD3D9Texture.cpp. References mpD3D, mpDev, and mpTex. Referenced by _blitImagesToCubeTex(), _blitImageToNormTex(), _loadCubeTex(), and blitToTexture(). |
|
internal method, return the color masks for a given format
Definition at line 945 of file OgreD3D9Texture.cpp. References Except. Referenced by _copyMemoryToSurface(). |
|
internal method, the cube map face name for the spec. face index
Definition at line 120 of file OgreD3D9Texture.h. References mCubeFaceNames, and Ogre::String. |
|
internal method, convert Ogre pixel format to D3D9 pixel format
Definition at line 1349 of file OgreD3D9Texture.cpp. References Ogre::PF_A2R10G10B10, Ogre::PF_A4L4, Ogre::PF_A4R4G4B4, Ogre::PF_A8, Ogre::PF_A8R8G8B8, Ogre::PF_B10G10R10A2, Ogre::PF_B4G4R4A4, Ogre::PF_B5G6R5, Ogre::PF_B8G8R8, Ogre::PF_B8G8R8A8, Ogre::PF_L4A4, Ogre::PF_L8, Ogre::PF_R5G6B5, Ogre::PF_R8G8B8, Ogre::PF_UNKNOWN, and Ogre::PixelFormat. |
|
Create a depth buffer for our render target, it must be of the same format as other targets !!! .
Definition at line 1322 of file OgreD3D9Texture.cpp. References Ogre::PF_A2R10G10B10, Ogre::PF_A4L4, Ogre::PF_A4R4G4B4, Ogre::PF_A8, Ogre::PF_A8R8G8B8, Ogre::PF_L8, Ogre::PF_R5G6B5, Ogre::PF_R8G8B8, Ogre::PF_UNKNOWN, and Ogre::PixelFormat. Referenced by _blitImagesToCubeTex(), _blitImageToNormTex(), _loadCubeTex(), _loadNormTex(), _loadVolumeTex(), and blitToTexture(). |
|
internal method, return the BPP for the specified format
Definition at line 123 of file OgreD3D9Texture.h. References Ogre::PixelFormat. Referenced by _setSrcAttributes(). |
|
internal method, initialize member vars
Definition at line 757 of file OgreD3D9Texture.cpp. References mCubeFaceNames, Ogre::Texture::mHeight, Ogre::Resource::mIsLoaded, mpCubeTex, mpD3D, mpDev, mpNormTex, mpTex, mpZBuff, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, and Ogre::Texture::mWidth. Referenced by D3D9Texture(). |
|
internal method, load a cube texture
Definition at line 395 of file OgreD3D9Texture.cpp. References _createCubeTex(), _freeResources(), _getBestFilterMethod(), _getPF(), _setFinalAttributes(), _setSrcAttributes(), Except, Ogre::Image::getFormat(), Ogre::Image::getHeight(), Ogre::Resource::getName(), Ogre::DataChunk::getPtr(), Ogre::DataChunk::getSize(), Ogre::Image::getWidth(), Ogre::Image::load(), Ogre::Resource::mIsLoaded, mpCubeTex, mpDev, mpTex, and Ogre::TEX_TYPE_CUBE_MAP. Referenced by load(). |
|
internal method, load a normal texture
Definition at line 552 of file OgreD3D9Texture.cpp. References _freeResources(), _getPF(), _setFinalAttributes(), _setSrcAttributes(), Except, Ogre::DataChunk::getPtr(), Ogre::DataChunk::getSize(), Ogre::Texture::getTextureType(), Ogre::Resource::mIsLoaded, mpDev, mpNormTex, mpTex, Ogre::TEX_TYPE_1D, and Ogre::TEX_TYPE_2D. Referenced by load(). |
|
internal method, load a volume texture
Definition at line 513 of file OgreD3D9Texture.cpp. References _freeResources(), _getPF(), _setFinalAttributes(), _setSrcAttributes(), Except, Ogre::DataChunk::getPtr(), Ogre::DataChunk::getSize(), Ogre::Resource::mIsLoaded, mpDev, mpTex, mpVolumeTex, and Ogre::TEX_TYPE_3D. Referenced by load(). |
|
internal method, set the device and fillIn the device caps
Definition at line 773 of file OgreD3D9Texture.cpp. References Except, mBBPixelFormat, mDevCaps, mDevCreParams, mpD3D, mpDev, and SAFE_RELEASE. Referenced by D3D9Texture(). |
|
internal method, set Texture class final texture protected attributes
Definition at line 838 of file OgreD3D9Texture.cpp. References Ogre::Texture::mDepth, Ogre::Texture::mFinalBpp, Ogre::Texture::mFormat, Ogre::Texture::mHasAlpha, Ogre::Texture::mHeight, Ogre::Resource::mSize, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, Ogre::Texture::mTextureType, Ogre::Texture::mWidth, Ogre::PixelFormat, and Ogre::TEX_TYPE_CUBE_MAP. Referenced by _createCubeTex(), _createNormTex(), _loadCubeTex(), _loadNormTex(), and _loadVolumeTex(). |
|
internal method, set Texture class source image protected attributes
Definition at line 865 of file OgreD3D9Texture.cpp. References _freeResources(), _getPFBpp(), Except, Ogre::Texture::getTextureType(), Ogre::Texture::mHasAlpha, Ogre::Texture::mNumMipMaps, Ogre::Texture::mSrcBpp, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, Ogre::Texture::mUsage, Ogre::PixelFormat, Ogre::TEX_TYPE_1D, Ogre::TEX_TYPE_2D, Ogre::TEX_TYPE_3D, Ogre::TEX_TYPE_CUBE_MAP, and Ogre::TU_RENDERTARGET. Referenced by _loadCubeTex(), _loadNormTex(), _loadVolumeTex(), D3D9Texture(), and loadImage(). |
|
overriden from Texture
Reimplemented from Ogre::Texture. Definition at line 89 of file OgreD3D9Texture.cpp. References Except. |
|
overriden from Texture
Implements Ogre::Texture. Definition at line 94 of file OgreD3D9Texture.cpp. References _chooseD3DFormat(), _freeResources(), _getBestFilterMethod(), _getPF(), Except, Ogre::Image::getData(), Ogre::Image::getFormat(), Ogre::Image::getHeight(), Ogre::Image::getWidth(), mpDev, mpNormTex, mpTex, Ogre::Texture::mSrcBpp, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, and SAFE_RELEASE. |
|
overriden from Texture
Reimplemented from Ogre::Texture. Definition at line 228 of file OgreD3D9Texture.cpp. References Except, getCubeTexture(), Ogre::Texture::getHeight(), getNormTexture(), Ogre::Texture::getTextureType(), Ogre::Texture::getUsage(), Ogre::Texture::getWidth(), mpCubeTex, mpDev, mpNormTex, SAFE_RELEASE, Ogre::String, Ogre::TEX_TYPE_2D, and Ogre::TEX_TYPE_CUBE_MAP. |
|
A method to make the resource delete itself.
Definition at line 137 of file OgreResource.h. |
|
Definition at line 154 of file OgreTexture.h. Referenced by Ogre::GLTextureManager::create(), Ogre::D3D9TextureManager::create(), Ogre::D3DTextureManager::create(), Ogre::D3D9TextureManager::createAsRenderTarget(), Ogre::D3DTextureManager::createAsRenderTarget(), Ogre::GLTextureManager::createManual(), Ogre::GLTexture::GLTexture(), Ogre::TextureManager::load(), and Ogre::Texture::Texture(). |
|
retrieves a pointer to the cube texture
Definition at line 155 of file OgreD3D9Texture.h. References mpCubeTex. Referenced by copyToTexture(). |
|
Returns the depth of the texture (only applicable for 3D textures).
Definition at line 106 of file OgreTexture.h. |
|
retrieves a pointer to the Depth stencil
Definition at line 158 of file OgreD3D9Texture.h. References mpZBuff. |
|
Returns both the width and height of the texture.
Definition at line 110 of file OgreTexture.h. |
|
Returns the pixel format for the texture surface.
Definition at line 160 of file OgreTexture.h. References Ogre::PixelFormat. Referenced by _blitImagesToCubeTex(). |
|
Returns the gamma adjustment factor applied to this texture.
Definition at line 88 of file OgreTexture.h. Referenced by loadImage(). |
|
Definition at line 120 of file OgreResource.h. References Ogre::ResourceHandle. Referenced by Ogre::Material::clone(), Ogre::BspLevel::loadQuake3Level(), and Ogre::ResourceManager::unload(). |
|
Returns the height of the texture.
Definition at line 98 of file OgreTexture.h. Referenced by _blitImagesToCubeTex(), Ogre::D3DTexture::blitImage3D(), copyToTexture(), and Ogre::TextureUnitState::getTextureDimensions(). |
|
Gets the last time the resource was 'touched'.
Definition at line 108 of file OgreResource.h. |
|
|
retrieves a pointer to the normal 1D/2D texture
Definition at line 152 of file OgreD3D9Texture.h. References mpNormTex. Referenced by copyToTexture(). |
|
Gets the number of mipmaps to be used for this texture.
Definition at line 78 of file OgreTexture.h. Referenced by Ogre::GLRenderTexture::_copyToTexture(). |
|
Retrieves info about the size of the resource.
Definition at line 93 of file OgreResource.h. Referenced by Ogre::ResourceManager::unload(). |
|
retrieves a pointer to the actual texture
Definition at line 149 of file OgreD3D9Texture.h. References mpTex. Referenced by Ogre::D3D9RenderSystem::_setTexture(). |
|
Gets the type of texture.
Definition at line 74 of file OgreTexture.h. References Ogre::TextureType. Referenced by _createTex(), _loadNormTex(), _setSrcAttributes(), Ogre::D3D9RenderSystem::_setTexture(), Ogre::D3DRenderSystem::_setTexture(), Ogre::GLTexture::blitToTexture(), copyToTexture(), Ogre::GLTexture::createRenderTexture(), D3D9Texture(), load(), and loadImage(). |
|
Returns the TextureUsage indentifier for this Texture.
Definition at line 114 of file OgreTexture.h. References Ogre::TextureUsage. Referenced by copyToTexture(), and Ogre::D3DTexture::copyToTexture(). |
|
Returns the width of the texture.
Definition at line 102 of file OgreTexture.h. Referenced by _blitImagesToCubeTex(), Ogre::D3DTexture::blitImage3D(), copyToTexture(), and Ogre::TextureUnitState::getTextureDimensions(). |
|
Returns true if the texture has an alpha layer.
Definition at line 166 of file OgreTexture.h. Referenced by Ogre::Font::load(). |
|
Returns true if the Resource has been loaded, false otherwise.
Definition at line 127 of file OgreResource.h. Referenced by Ogre::GpuProgramUsage::_load(), Ogre::SceneManager::deriveShadowCasterPass(), Ogre::SceneManager::deriveShadowReceiverPass(), Ogre::Technique::isLoaded(), load(), unload(), and ~D3D9Texture(). |
|
overriden from Resource
Implements Ogre::Resource. Definition at line 344 of file OgreD3D9Texture.cpp. References _createTex(), _freeResources(), _loadCubeTex(), _loadNormTex(), _loadVolumeTex(), Except, Ogre::Texture::getTextureType(), Ogre::Resource::isLoaded(), Ogre::Resource::mIsLoaded, Ogre::Texture::mUsage, Ogre::TEX_TYPE_1D, Ogre::TEX_TYPE_2D, Ogre::TEX_TYPE_3D, Ogre::TEX_TYPE_CUBE_MAP, Ogre::TU_RENDERTARGET, and unload(). Referenced by Ogre::D3D9TextureManager::createAsRenderTarget(). |
|
overriden from Texture
Implements Ogre::Texture. Definition at line 327 of file OgreD3D9Texture.cpp. References _blitImageToNormTex(), _createNormTex(), _setSrcAttributes(), Ogre::Image::getBPP(), Ogre::Image::getData(), Ogre::Image::getFormat(), Ogre::Texture::getGamma(), Ogre::Image::getHeight(), Ogre::Image::getSize(), Ogre::Texture::getTextureType(), Ogre::Image::getWidth(), Ogre::Resource::mIsLoaded, Ogre::TEX_TYPE_1D, and Ogre::TEX_TYPE_2D. |
|
Loads the data from the raw memory area.
Definition at line 54 of file OgreTexture.cpp. References Ogre::Texture::loadImage(), Ogre::Image::loadRawData(), Ogre::PixelFormat, and Ogre::ushort. Referenced by Ogre::TextureManager::loadRawData(). |
|
Sets the gamma adjustment factor applied to this texture.
Definition at line 94 of file OgreTexture.h. Referenced by Ogre::TextureManager::load(), Ogre::TextureManager::loadImage(), and Ogre::TextureManager::loadRawData(). |
|
Sets the number of mipmaps to be used for this texture.
Definition at line 84 of file OgreTexture.h. Referenced by Ogre::TextureManager::load(), Ogre::TextureManager::loadImage(), and Ogre::TextureManager::loadRawData(). |
|
'Touches' the resource to indicate it has been used.
Reimplemented in Ogre::Material. Definition at line 100 of file OgreResource.h. Referenced by Ogre::Mesh::clone(), Ogre::MeshManager::createCurvedIllusionPlane(), Ogre::MeshManager::createCurvedPlane(), Ogre::MeshManager::createPlane(), and Ogre::ResourceManager::load(). |
|
overriden from Resource
Reimplemented from Ogre::Resource. Definition at line 377 of file OgreD3D9Texture.cpp. References _freeResources(), Ogre::Resource::isLoaded(), and Ogre::Resource::mIsLoaded. Referenced by load(), and ~D3D9Texture(). |
|
Definition at line 68 of file OgreD3D9Texture.h. Referenced by _createCubeTex(), _createNormTex(), and D3D9Texture(). |
|
back buffer pixel format
Definition at line 64 of file OgreD3D9Texture.h. Referenced by _canAutoGenMipMaps(), _createCubeTex(), _createNormTex(), and _setDevice(). |
|
cube texture individual face names
Definition at line 60 of file OgreD3D9Texture.h. Referenced by _constructCubeFaceNames(), _getCubeFaceName(), and _initMembers(). |
|
Definition at line 174 of file OgreTexture.h. Referenced by _setFinalAttributes(), Ogre::GLTexture::generateMipMaps(), and Ogre::GLTexture::loadImages(). |
|
device capabilities pointer
Definition at line 66 of file OgreD3D9Texture.h. Referenced by _canAutoGenMipMaps(), _createCubeTex(), _createNormTex(), and _setDevice(). |
|
device creation parameters
Definition at line 62 of file OgreD3D9Texture.h. Referenced by _canAutoGenMipMaps(), and _setDevice(). |
|
Definition at line 185 of file OgreTexture.h. Referenced by _chooseD3DFormat(), Ogre::D3DTexture::_chooseD3DFormat(), _setFinalAttributes(), Ogre::D3DTexture::blitImage(), Ogre::D3DTexture::blitImage3D(), Ogre::D3DTexture::D3DTexture(), Ogre::D3DTexture::load(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), and Ogre::GLTexture::loadImages(). |
|
Definition at line 180 of file OgreTexture.h. Referenced by _setFinalAttributes(), Ogre::D3DTexture::D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::Texture::Texture(). |
|
Definition at line 177 of file OgreTexture.h. Referenced by Ogre::D3DTexture::blitImage(), Ogre::D3DTexture::blitImage3D(), and Ogre::GLTexture::rescaleNPower2(). |
|
Definition at line 57 of file OgreResource.h. Referenced by Ogre::ResourceManager::add(), Ogre::Material::clone(), Ogre::Material::copyDetailsTo(), and Ogre::Material::operator=(). |
|
Definition at line 186 of file OgreTexture.h. Referenced by _chooseD3DFormat(), _setFinalAttributes(), _setSrcAttributes(), Ogre::D3DTexture::D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), Ogre::GLTexture::loadImages(), Ogre::GLTexture::rescaleNPower2(), and Ogre::Texture::Texture(). |
|
Definition at line 172 of file OgreTexture.h. Referenced by _initMembers(), _setFinalAttributes(), Ogre::GLTexture::createRenderTexture(), Ogre::D3DTexture::createSurface2D(), Ogre::D3DTexture::createSurface3D(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2(). |
|
|
Definition at line 59 of file OgreResource.h. Referenced by Ogre::Material::operator=(). |
|
|
Definition at line 176 of file OgreTexture.h. Referenced by _createCubeTex(), _createNormTex(), _setSrcAttributes(), Ogre::GLTexture::createRenderTexture(), Ogre::D3DTexture::createSurface2D(), Ogre::D3DTexture::createSurface3D(), D3D9Texture(), Ogre::D3DTexture::D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), and Ogre::GLTexture::loadImages(). |
|
cubic texture pointer
Definition at line 51 of file OgreD3D9Texture.h. Referenced by _blitImagesToCubeTex(), _createCubeTex(), _freeResources(), _initMembers(), _loadCubeTex(), copyToTexture(), and getCubeTexture(). |
|
D3D9 pointer.
Definition at line 47 of file OgreD3D9Texture.h. Referenced by _canAutoGenMipMaps(), _getBestFilterMethod(), _initMembers(), _setDevice(), and ~D3D9Texture(). |
|
D3DDevice pointer.
Definition at line 45 of file OgreD3D9Texture.h. Referenced by _blitImagesToCubeTex(), _blitImageToNormTex(), _canAutoGenMipMaps(), _createCubeTex(), _createDepthStencil(), _createNormTex(), _getBestFilterMethod(), _initMembers(), _loadCubeTex(), _loadNormTex(), _loadVolumeTex(), _setDevice(), blitToTexture(), and copyToTexture(). |
|
1D/2D normal texture pointer
Definition at line 49 of file OgreD3D9Texture.h. Referenced by _blitImageToNormTex(), _createNormTex(), _freeResources(), _initMembers(), _loadNormTex(), blitToTexture(), copyToTexture(), and getNormTexture(). |
|
actual texture pointer
Definition at line 57 of file OgreD3D9Texture.h. Referenced by _blitImagesToCubeTex(), _blitImageToNormTex(), _createCubeTex(), _createNormTex(), _freeResources(), _getBestFilterMethod(), _initMembers(), _loadCubeTex(), _loadNormTex(), _loadVolumeTex(), blitToTexture(), and getTexture(). |
|
Volume texture.
Definition at line 53 of file OgreD3D9Texture.h. Referenced by _loadVolumeTex(). |
|
z-buffer for the render surface pointer
Definition at line 55 of file OgreD3D9Texture.h. Referenced by _createDepthStencil(), _freeResources(), _initMembers(), and getDepthStencil(). |
|
Definition at line 60 of file OgreResource.h. Referenced by _setFinalAttributes(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::Material::operator=(). |
|
Definition at line 183 of file OgreTexture.h. Referenced by _copyMemoryToSurface(), _setSrcAttributes(), blitToTexture(), Ogre::D3DTexture::D3DTexture(), Ogre::D3DTexture::load(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), Ogre::GLTexture::loadImages(), Ogre::GLTexture::rescaleNPower2(), and Ogre::Texture::Texture(). |
|
Definition at line 184 of file OgreTexture.h. Referenced by _copyMemoryToSurface(), _createCubeTex(), _createDepthStencil(), _createNormTex(), _createTex(), _initMembers(), _setFinalAttributes(), _setSrcAttributes(), blitToTexture(), Ogre::D3DTexture::createSurface2D(), Ogre::D3DTexture::createSurface3D(), Ogre::D3DTexture::D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::D3DTexture::load(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2(). |
|
Definition at line 184 of file OgreTexture.h. Referenced by _copyMemoryToSurface(), _createCubeTex(), _createDepthStencil(), _createNormTex(), _createTex(), _initMembers(), _setFinalAttributes(), _setSrcAttributes(), blitToTexture(), Ogre::D3DTexture::createSurface2D(), Ogre::D3DTexture::createSurface3D(), Ogre::D3DTexture::D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::D3DTexture::load(), Ogre::D3DTexture::loadImage(), Ogre::D3DTexture::loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2(). |
|
Definition at line 179 of file OgreTexture.h. Referenced by _setFinalAttributes(), Ogre::D3DTexture::createSurface(), D3D9Texture(), Ogre::D3DTexture::D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), Ogre::GLTexture::load(), and Ogre::D3DTexture::load(). |
|
Definition at line 181 of file OgreTexture.h. Referenced by _createCubeTex(), _createNormTex(), _setSrcAttributes(), Ogre::D3DTexture::copyToTexture(), Ogre::D3DTexture::createSurface2D(), Ogre::D3DTexture::createSurface3D(), D3D9Texture(), Ogre::D3DTexture::D3DTexture(), Ogre::GLTexture::GLTexture(), Ogre::GLTexture::load(), load(), and Ogre::D3DTexture::load(). |
|
Definition at line 173 of file OgreTexture.h. Referenced by _initMembers(), _setFinalAttributes(), Ogre::GLTexture::createRenderTexture(), Ogre::D3DTexture::createSurface2D(), Ogre::D3DTexture::createSurface3D(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:49:28 2004