Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::D3DTexture Class Reference

Direct3D7-specific texture resource implementation. More...

#include <OgreD3D7Texture.h>

Inheritance diagram for Ogre::D3DTexture:

Inheritance graph
[legend]
Collaboration diagram for Ogre::D3DTexture:

Collaboration graph
[legend]
List of all members.

Public Methods

 D3DTexture (const String &name, TextureType texType, IDirect3DDevice7 *lpDirect3dDevice, TextureUsage usage)
 D3DTexture (const String &name, TextureType texType, IDirect3DDevice7 *lpDirect3dDevice, uint width, uint height, uint num_mips, PixelFormat format, TextureUsage usage)
 Constructor that can be used to manually create a texture and set its parameters.

virtual ~D3DTexture ()
virtual void load (void)
 Loads the resource, if it is not already.

virtual void loadImage (const Image &img)
 Loads the data from an image.

virtual void loadImage3D (const Image imgs[])
virtual void blitToTexture (const Image &src, unsigned uStartX, unsigned uStartY)
 Blits the contents of src on the texture.

virtual void blitImage (const Image &src, const Image::Rect imgRect, const Image::Rect texRect)
 Blits a rect from an image to the texture.

virtual void blitImage3D (const Image src[], const Image::Rect imgRect, const Image::Rect texRect)
virtual void unload (void)
 Unloads the resource, but retains data to recreate.

virtual void copyToTexture (Texture *target)
 Copies (and maybe scales to fit) the contents of this texture to another texture.

LPDIRECTDRAWSURFACE7 getDDSurface (void)
 D3D-specific member that returns the underlying surface.

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, uintgetDimensions () 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 StringgetName (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 Methods

void createSurface (void)
void createSurface2D (void)
void createSurface3D (void)
void _chooseD3DFormat (DDPIXELFORMAT &ddpf)
 internal method, return a D3D pixel format for texture creation

void _constructCubeFaceNames (const String name)
 internal method, construct full cube texture face names from a given string

String _getCubeFaceName (unsigned char face)
 internal method, the cube map face name for the spec. face index


Static Protected Methods

unsigned short _getPFBpp (PixelFormat ogrePF)
 internal method, return the BPP for the specified format


Protected Attributes

IDirect3DDevice7 * mD3DDevice
 A pointer to the Direct3D device.

IDirectDrawSurface7 * mSurface
 Surface of the (first) device-specific texture.

String mCubeFaceNames [6]
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

Detailed Description

Direct3D7-specific texture resource implementation.

Definition at line 38 of file OgreD3D7Texture.h.


Constructor & Destructor Documentation

Ogre::D3DTexture::D3DTexture const String   name,
TextureType    texType,
IDirect3DDevice7 *    lpDirect3dDevice,
TextureUsage    usage
 

Ogre::D3DTexture::D3DTexture const String   name,
TextureType    texType,
IDirect3DDevice7 *    lpDirect3dDevice,
uint    width,
uint    height,
uint    num_mips,
PixelFormat    format,
TextureUsage    usage
 

Constructor that can be used to manually create a texture and set its parameters.

Definition at line 226 of file OgreD3D7Texture.cpp.

References createSurface(), mD3DDevice, Ogre::Texture::mFinalBpp, Ogre::Texture::mFormat, Ogre::Texture::mHasAlpha, Ogre::Resource::mIsLoaded, Ogre::Resource::mName, Ogre::Texture::mNumMipMaps, Ogre::Texture::mSrcBpp, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, Ogre::Texture::mTextureType, Ogre::Texture::mUsage, Ogre::PixelFormat, Ogre::TextureType, Ogre::TextureUsage, and Ogre::uint.

Ogre::D3DTexture::~D3DTexture   [virtual]
 

Definition at line 253 of file OgreD3D7Texture.cpp.

References Ogre::__safeRelease(), mD3DDevice, and unload().


Member Function Documentation

void Ogre::D3DTexture::_chooseD3DFormat DDPIXELFORMAT &    ddpf [protected]
 

internal method, return a D3D pixel format for texture creation

Definition at line 828 of file OgreD3D7Texture.cpp.

References Ogre::Texture::mFinalBpp.

Referenced by createSurface2D(), and createSurface3D().

void Ogre::D3DTexture::_constructCubeFaceNames const String    name [protected]
 

internal method, construct full cube texture face names from a given string

Definition at line 1172 of file OgreD3D7Texture.cpp.

References Except, and mCubeFaceNames.

Referenced by load().

String Ogre::D3DTexture::_getCubeFaceName unsigned char    face [protected]
 

internal method, the cube map face name for the spec. face index

Definition at line 87 of file OgreD3D7Texture.h.

unsigned short Ogre::D3DTexture::_getPFBpp PixelFormat    ogrePF [static, protected]
 

internal method, return the BPP for the specified format

Definition at line 90 of file OgreD3D7Texture.h.

References Ogre::PixelFormat.

void Ogre::D3DTexture::blitImage const Image   src,
const Image::Rect    imgRect,
const Image::Rect    texRect
[virtual]
 

Blits a rect from an image to the texture.

Parameters:
src  The image with the source data.
imgRect  The data rect to be copied from the image.
texRect  The rect in which to copy the data in the texture.

Reimplemented from Ogre::Texture.

Definition at line 269 of file OgreD3D7Texture.cpp.

References Ogre::Image::Rect::bottom, Except, Ogre::Image::getBPP(), Ogre::Image::getData(), Ogre::Image::getHasAlpha(), Ogre::Image::getHeight(), Ogre::Image::getSize(), Ogre::Image::getWidth(), Ogre::Image::Rect::left, mD3DDevice, Ogre::Texture::mFinalBpp, Ogre::Texture::mGamma, mSurface, OgreGuard, OgreUnguard, Ogre::Real, Ogre::Image::Rect::right, Ogre::Image::Rect::top, Ogre::uchar, and Ogre::uint.

Referenced by blitToTexture(), and loadImage().

void Ogre::D3DTexture::blitImage3D const Image    src[],
const Image::Rect    imgRect,
const Image::Rect    texRect
[virtual]
 

Definition at line 457 of file OgreD3D7Texture.cpp.

References Ogre::Image::Rect::bottom, Except, Ogre::Image::getBPP(), Ogre::Image::getData(), Ogre::Image::getHasAlpha(), Ogre::Texture::getHeight(), Ogre::Image::getHeight(), Ogre::Image::getSize(), Ogre::Texture::getWidth(), Ogre::Image::getWidth(), Ogre::Image::Rect::left, mD3DDevice, Ogre::Texture::mFinalBpp, Ogre::Texture::mGamma, mSurface, OgreGuard, OgreUnguard, Ogre::Real, Ogre::Image::Rect::right, Ogre::Image::Rect::top, Ogre::uchar, and Ogre::uint.

Referenced by loadImage3D().

void Ogre::D3DTexture::blitToTexture const Image   src,
unsigned    uStartX,
unsigned    uStartY
[virtual]
 

Blits the contents of src on the texture.

Deprecated:
This feature is superseded by the blitImage function.
Parameters:
src  the image with the source data

Implements Ogre::Texture.

Definition at line 261 of file OgreD3D7Texture.cpp.

References blitImage(), Ogre::Image::getHeight(), and Ogre::Image::getWidth().

void Ogre::D3DTexture::copyToTexture Texture   target [virtual]
 

Copies (and maybe scales to fit) the contents of this texture to another texture.

Reimplemented from Ogre::Texture.

Definition at line 684 of file OgreD3D7Texture.cpp.

References Except, getDDSurface(), Ogre::Texture::getUsage(), mSurface, and Ogre::Texture::mUsage.

void Ogre::D3DTexture::createSurface void    [protected]
 

Definition at line 878 of file OgreD3D7Texture.cpp.

References createSurface2D(), createSurface3D(), Ogre::Texture::mTextureType, and Ogre::TEX_TYPE_CUBE_MAP.

Referenced by D3DTexture(), load(), loadImage(), and loadImage3D().

void Ogre::D3DTexture::createSurface2D void    [protected]
 

Definition at line 891 of file OgreD3D7Texture.cpp.

References _chooseD3DFormat(), Except, mD3DDevice, Ogre::Texture::mHeight, Ogre::Resource::mIsLoaded, Ogre::Texture::mNumMipMaps, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, mSurface, Ogre::Texture::mUsage, Ogre::Texture::mWidth, and Ogre::TU_RENDERTARGET.

Referenced by createSurface().

void Ogre::D3DTexture::createSurface3D void    [protected]
 

Definition at line 1029 of file OgreD3D7Texture.cpp.

References _chooseD3DFormat(), Except, mD3DDevice, Ogre::Texture::mHeight, Ogre::Resource::mIsLoaded, Ogre::Texture::mNumMipMaps, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, mSurface, Ogre::Texture::mUsage, Ogre::Texture::mWidth, and Ogre::TU_RENDERTARGET.

Referenced by createSurface().

virtual void Ogre::Resource::destroy void    [virtual, inherited]
 

A method to make the resource delete itself.

Note:
This exists because Resource objects could be created in other processes, and they need to be destroyed in the process that created them.

Definition at line 137 of file OgreResource.h.

void Ogre::Texture::enable32Bit bool    setting = true [inherited]
 

Definition at line 152 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(), and Ogre::TextureManager::load().

LPDIRECTDRAWSURFACE7 Ogre::D3DTexture::getDDSurface void   
 

D3D-specific member that returns the underlying surface.

Definition at line 1168 of file OgreD3D7Texture.cpp.

References mSurface.

Referenced by Ogre::D3DRenderSystem::_setTexture(), and copyToTexture().

unsigned int Ogre::Texture::getDepth void    const [inherited]
 

Returns the depth of the texture (only applicable for 3D textures).

Definition at line 104 of file OgreTexture.h.

std::pair< uint, uint > Ogre::Texture::getDimensions   const [inherited]
 

Returns both the width and height of the texture.

Definition at line 108 of file OgreTexture.h.

virtual PixelFormat Ogre::Texture::getFormat   const [virtual, inherited]
 

Returns the pixel format for the texture surface.

Definition at line 158 of file OgreTexture.h.

References Ogre::PixelFormat.

Referenced by Ogre::D3D9Texture::_blitImagesToCubeTex(), and Ogre::D3D9Texture::_loadCubeTex().

float Ogre::Texture::getGamma void    const [inherited]
 

Returns the gamma adjustment factor applied to this texture.

Definition at line 86 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::loadImage().

ResourceHandle Ogre::Resource::getHandle void    const [inherited]
 

Definition at line 120 of file OgreResource.h.

References Ogre::ResourceHandle.

Referenced by Ogre::Material::clone(), Ogre::BspLevel::loadQuake3Level(), and Ogre::ResourceManager::unload().

unsigned int Ogre::Texture::getHeight void    const [inherited]
 

Returns the height of the texture.

Definition at line 96 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_blitImagesToCubeTex(), Ogre::D3D9Texture::_loadCubeTex(), blitImage3D(), Ogre::D3D9Texture::copyToTexture(), and Ogre::TextureUnitState::getTextureDimensions().

time_t Ogre::Resource::getLastAccess void    const [inherited]
 

Gets the last time the resource was 'touched'.

Definition at line 108 of file OgreResource.h.

const String& Ogre::Resource::getName void    const [inherited]
 

Gets resource name.

Reimplemented in Ogre::Material, and Ogre::Overlay.

Definition at line 115 of file OgreResource.h.

Referenced by Ogre::D3D9Texture::_loadCubeTex(), Ogre::Mesh::_notifySkeleton(), Ogre::ResourceManager::add(), Ogre::PopupMenuGuiElement::addListItem(), Ogre::ListGuiElement::addListItem(), Ogre::PopupMenuGuiElement::addMenuItem(), Ogre::MeshManager::createPrefabPlane(), Ogre::TTYGuiElement::getFontName(), Ogre::TextAreaGuiElement::getFontName(), Ogre::PopupMenuGuiElement::getListItemName(), Ogre::ListGuiElement::getListItemName(), Ogre::GpuProgramUsage::getProgramName(), Ogre::MeshSerializer::importMesh(), Ogre::GLTexture::load(), Ogre::TextureManager::loadImage(), Ogre::TextureManager::loadRawData(), Ogre::FontManager::logBadAttrib(), Ogre::MeshSerializerImpl_v1::readMaterial(), Ogre::MeshSerializerImpl::readMeshLodInfo(), Ogre::MeshSerializerImpl_v1::readMeshLodUsageGenerated(), Ogre::MeshSerializerImpl::readMeshLodUsageGenerated(), Ogre::MeshSerializerImpl::readMeshLodUsageManual(), Ogre::PopupMenuGuiElement::removeListItem(), Ogre::ListGuiElement::removeListItem(), Ogre::SceneManager::setSkyBox(), Ogre::SceneManager::setSkyDome(), and Ogre::ResourceManager::unload().

unsigned short Ogre::Texture::getNumMipMaps void    const [inherited]
 

Gets the number of mipmaps to be used for this texture.

Definition at line 76 of file OgreTexture.h.

Referenced by Ogre::GLRenderTexture::_copyToTexture().

virtual size_t Ogre::Resource::getSize void    const [virtual, inherited]
 

Retrieves info about the size of the resource.

Definition at line 93 of file OgreResource.h.

Referenced by Ogre::ResourceManager::unload().

TextureType Ogre::Texture::getTextureType void    const [inherited]
 

Gets the type of texture.

Definition at line 72 of file OgreTexture.h.

References Ogre::TextureType.

Referenced by Ogre::D3D9Texture::_createTex(), Ogre::D3D9Texture::_loadNormTex(), Ogre::D3D9Texture::_setSrcAttributes(), Ogre::D3D9RenderSystem::_setTexture(), Ogre::D3DRenderSystem::_setTexture(), Ogre::GLTexture::blitToTexture(), Ogre::D3D9Texture::copyToTexture(), Ogre::GLTexture::createRenderTexture(), Ogre::D3D9Texture::D3D9Texture(), Ogre::D3D9Texture::load(), and Ogre::D3D9Texture::loadImage().

TextureUsage Ogre::Texture::getUsage void    const [inherited]
 

Returns the TextureUsage indentifier for this Texture.

Definition at line 112 of file OgreTexture.h.

References Ogre::TextureUsage.

Referenced by Ogre::D3D9Texture::copyToTexture(), and copyToTexture().

unsigned int Ogre::Texture::getWidth void    const [inherited]
 

Returns the width of the texture.

Definition at line 100 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_blitImagesToCubeTex(), Ogre::D3D9Texture::_loadCubeTex(), blitImage3D(), Ogre::D3D9Texture::copyToTexture(), and Ogre::TextureUnitState::getTextureDimensions().

virtual bool Ogre::Texture::hasAlpha void    const [virtual, inherited]
 

Returns true if the texture has an alpha layer.

Definition at line 164 of file OgreTexture.h.

Referenced by Ogre::Font::load().

bool Ogre::Resource::isLoaded void    const [inherited]
 

Returns true if the Resource has been loaded, false otherwise.

Definition at line 127 of file OgreResource.h.

Referenced by Ogre::GpuProgramUsage::_load(), Ogre::Technique::isLoaded(), Ogre::D3D9Texture::load(), Ogre::D3D9Texture::unload(), and Ogre::D3D9Texture::~D3D9Texture().

void Ogre::D3DTexture::load void    [virtual]
 

Loads the resource, if it is not already.

Implements Ogre::Resource.

Definition at line 782 of file OgreD3D7Texture.cpp.

References _constructCubeFaceNames(), createSurface(), Ogre::Image::load(), loadImage(), loadImage3D(), mCubeFaceNames, Ogre::Texture::mFinalBpp, Ogre::Resource::mIsLoaded, Ogre::Resource::mName, Ogre::Texture::mSrcBpp, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, Ogre::Texture::mTextureType, Ogre::Texture::mUsage, Ogre::TEX_TYPE_CUBE_MAP, Ogre::TU_DEFAULT, and Ogre::TU_RENDERTARGET.

Referenced by Ogre::D3DTextureManager::createAsRenderTarget().

void Ogre::D3DTexture::loadImage const Image   img [virtual]
 

Loads the data from an image.

Implements Ogre::Texture.

Definition at line 702 of file OgreD3D7Texture.cpp.

References blitImage(), createSurface(), Ogre::Image::getBPP(), Ogre::Image::getFormat(), Ogre::Image::getHasAlpha(), Ogre::Image::getHeight(), Ogre::Image::getWidth(), Ogre::LML_TRIVIAL, Ogre::Texture::mFinalBpp, Ogre::Texture::mFormat, Ogre::Texture::mHasAlpha, Ogre::Resource::mIsLoaded, Ogre::Texture::mNumMipMaps, Ogre::Resource::mSize, Ogre::Texture::mSrcBpp, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, OgreGuard, OgreUnguard, and unload().

Referenced by load().

void Ogre::D3DTexture::loadImage3D const Image    imgs[] [virtual]
 

Definition at line 742 of file OgreD3D7Texture.cpp.

References blitImage3D(), createSurface(), Ogre::Image::getBPP(), Ogre::Image::getFormat(), Ogre::Image::getHasAlpha(), Ogre::Image::getHeight(), Ogre::Image::getWidth(), Ogre::LML_TRIVIAL, Ogre::Texture::mFinalBpp, Ogre::Texture::mFormat, Ogre::Texture::mHasAlpha, Ogre::Resource::mIsLoaded, Ogre::Texture::mNumMipMaps, Ogre::Resource::mSize, Ogre::Texture::mSrcBpp, Ogre::Texture::mSrcHeight, Ogre::Texture::mSrcWidth, OgreGuard, OgreUnguard, and unload().

Referenced by load().

void Ogre::Texture::loadRawData const DataChunk   pData,
ushort    uWidth,
ushort    uHeight,
PixelFormat    eFormat
[virtual, inherited]
 

Loads the data from the raw memory area.

Definition at line 31 of file OgreTexture.cpp.

References Ogre::Texture::loadImage(), Ogre::Image::loadRawData(), Ogre::PixelFormat, and Ogre::ushort.

Referenced by Ogre::TextureManager::loadRawData().

void Ogre::Texture::setGamma float    g [inherited]
 

Sets the gamma adjustment factor applied to this texture.

Note:
Must be called before any 'load' method.

Definition at line 92 of file OgreTexture.h.

Referenced by Ogre::TextureManager::load(), Ogre::TextureManager::loadImage(), and Ogre::TextureManager::loadRawData().

void Ogre::Texture::setNumMipMaps unsigned short    num [inherited]
 

Sets the number of mipmaps to be used for this texture.

Note:
Must be set before calling any 'load' method.

Definition at line 82 of file OgreTexture.h.

Referenced by Ogre::TextureManager::load(), Ogre::TextureManager::loadImage(), and Ogre::TextureManager::loadRawData().

virtual void Ogre::Resource::touch void    [virtual, inherited]
 

'Touches' the resource to indicate it has been used.

Reimplemented in Ogre::Material.

Definition at line 100 of file OgreResource.h.

Referenced by Ogre::ResourceManager::load().

void Ogre::D3DTexture::unload void    [virtual]
 

Unloads the resource, but retains data to recreate.

Reimplemented from Ogre::Resource.

Definition at line 819 of file OgreD3D7Texture.cpp.

References Ogre::__safeRelease(), Ogre::Resource::mIsLoaded, and mSurface.

Referenced by loadImage(), loadImage3D(), and ~D3DTexture().


Member Data Documentation

String Ogre::D3DTexture::mCubeFaceNames[6] [protected]
 

Definition at line 73 of file OgreD3D7Texture.h.

Referenced by _constructCubeFaceNames(), and load().

IDirect3DDevice7* Ogre::D3DTexture::mD3DDevice [protected]
 

A pointer to the Direct3D device.

Definition at line 70 of file OgreD3D7Texture.h.

Referenced by blitImage(), blitImage3D(), createSurface2D(), createSurface3D(), D3DTexture(), and ~D3DTexture().

unsigned long Ogre::Texture::mDepth [protected, inherited]
 

Definition at line 172 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_setFinalAttributes(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), and Ogre::GLTexture::loadImages().

unsigned short Ogre::Texture::mFinalBpp [protected, inherited]
 

Definition at line 183 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_chooseD3DFormat(), _chooseD3DFormat(), Ogre::D3D9Texture::_setFinalAttributes(), blitImage(), blitImage3D(), D3DTexture(), load(), loadImage(), loadImage3D(), and Ogre::GLTexture::loadImages().

PixelFormat Ogre::Texture::mFormat [protected, inherited]
 

Definition at line 178 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_setFinalAttributes(), D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), loadImage(), loadImage3D(), and Ogre::GLTexture::loadImages().

float Ogre::Texture::mGamma [protected, inherited]
 

Definition at line 175 of file OgreTexture.h.

Referenced by blitImage(), blitImage3D(), and Ogre::GLTexture::rescaleNPower2().

ResourceHandle Ogre::Resource::mHandle [protected, inherited]
 

Definition at line 57 of file OgreResource.h.

Referenced by Ogre::ResourceManager::add(), Ogre::Material::clone(), Ogre::Material::copyDetailsTo(), and Ogre::Material::operator=().

bool Ogre::Texture::mHasAlpha [protected, inherited]
 

Definition at line 184 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_chooseD3DFormat(), Ogre::D3D9Texture::_setFinalAttributes(), Ogre::D3D9Texture::_setSrcAttributes(), D3DTexture(), Ogre::GLTexture::generateMipMaps(), loadImage(), loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2().

unsigned long Ogre::Texture::mHeight [protected, inherited]
 

Definition at line 170 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_initMembers(), Ogre::D3D9Texture::_setFinalAttributes(), Ogre::GLTexture::createRenderTexture(), createSurface2D(), createSurface3D(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2().

bool Ogre::Resource::mIsLoaded [protected, inherited]
 

Definition at line 58 of file OgreResource.h.

Referenced by Ogre::D3D9Texture::_initMembers(), Ogre::D3D9Texture::_loadCubeTex(), Ogre::D3D9Texture::_loadNormTex(), Ogre::D3D9Texture::_loadVolumeTex(), Ogre::Material::_notifyNeedsRecompile(), Ogre::Material::clone(), createSurface2D(), createSurface3D(), Ogre::D3D9Texture::D3D9Texture(), D3DTexture(), Ogre::DynLib::DynLib(), Ogre::Zip::load(), Ogre::Skeleton::load(), Ogre::PatchMesh::load(), Ogre::Mesh::load(), Ogre::Material::load(), Ogre::HighLevelGpuProgram::load(), Ogre::GpuProgram::load(), Ogre::GLTexture::load(), Ogre::Font::load(), Ogre::DynLib::load(), Ogre::D3D9Texture::load(), Ogre::D3D9GpuProgram::load(), load(), Ogre::BspLevel::load(), Ogre::D3D9Texture::loadImage(), loadImage(), loadImage3D(), Ogre::GLTexture::loadImages(), Ogre::Material::Material(), Ogre::Material::operator=(), Ogre::Skeleton::unload(), Ogre::Mesh::unload(), Ogre::Material::unload(), Ogre::HighLevelGpuProgram::unload(), Ogre::GLTexture::unload(), Ogre::Font::unload(), Ogre::DynLib::unload(), Ogre::D3D9Texture::unload(), unload(), and Ogre::BspLevel::~BspLevel().

time_t Ogre::Resource::mLastAccess [protected, inherited]
 

Definition at line 59 of file OgreResource.h.

Referenced by Ogre::Material::operator=().

String Ogre::Resource::mName [protected, inherited]
 

Definition at line 56 of file OgreResource.h.

Referenced by Ogre::Skeleton::_dumpContents(), Ogre::Mesh::_rationaliseBoneAssignments(), Ogre::BspLevel::BspLevel(), Ogre::Mesh::buildTangentVectors(), Ogre::Material::clone(), Ogre::Material::compile(), Ogre::Material::copyDetailsTo(), Ogre::Quake3Shader::createAsMaterial(), Ogre::D3D9HLSLProgram::createLowLevelImpl(), Ogre::CgProgram::createLowLevelImpl(), Ogre::Font::createTextureFromFont(), Ogre::D3D9Texture::D3D9Texture(), D3DTexture(), Ogre::DynLib::DynLib(), Ogre::Font::Font(), Ogre::Mesh::generateLodLevels(), Ogre::Material::getBestTechnique(), Ogre::Overlay::getName(), Ogre::Material::getName(), Ogre::GLTexture::GLTexture(), Ogre::GpuProgram::GpuProgram(), Ogre::Zip::load(), Ogre::Skeleton::load(), Ogre::Mesh::load(), Ogre::GLTexture::load(), Ogre::Font::load(), Ogre::DynLib::load(), load(), Ogre::BspLevel::load(), Ogre::D3D9GpuFragmentProgram::loadFromMicrocode(), Ogre::D3D9GpuVertexProgram::loadFromMicrocode(), Ogre::GLArbGpuProgram::loadFromSource(), Ogre::D3D9HLSLProgram::loadFromSource(), Ogre::D3D9GpuProgram::loadFromSource(), Ogre::CgProgram::loadFromSource(), Ogre::GLTexture::loadImages(), Ogre::Material::Material(), Ogre::Mesh::Mesh(), Ogre::Material::operator=(), Ogre::Overlay::Overlay(), Ogre::Quake3Shader::Quake3Shader(), Ogre::CgProgram::selectProfile(), Ogre::Mesh::setSkeletonName(), Ogre::Skeleton::Skeleton(), Ogre::StringResource::StringResource(), Ogre::Zip::unload(), Ogre::DynLib::unload(), Ogre::CgProgram::unloadImpl(), and Ogre::Zip::Zip().

unsigned short Ogre::Texture::mNumMipMaps [protected, inherited]
 

Definition at line 174 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_createCubeTex(), Ogre::D3D9Texture::_createNormTex(), Ogre::D3D9Texture::_setSrcAttributes(), Ogre::GLTexture::createRenderTexture(), createSurface2D(), createSurface3D(), Ogre::D3D9Texture::D3D9Texture(), D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), loadImage(), loadImage3D(), and Ogre::GLTexture::loadImages().

size_t Ogre::Resource::mSize [protected, inherited]
 

Definition at line 60 of file OgreResource.h.

Referenced by Ogre::D3D9Texture::_setFinalAttributes(), loadImage(), loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::Material::operator=().

unsigned short Ogre::Texture::mSrcBpp [protected, inherited]
 

Definition at line 181 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_copyMemoryToSurface(), Ogre::D3D9Texture::_setSrcAttributes(), D3DTexture(), Ogre::GLTexture::GLTexture(), load(), loadImage(), loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2().

unsigned long Ogre::Texture::mSrcHeight [protected, inherited]
 

Definition at line 182 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_copyMemoryToSurface(), Ogre::D3D9Texture::_createCubeTex(), Ogre::D3D9Texture::_createDepthStencil(), Ogre::D3D9Texture::_createNormTex(), Ogre::D3D9Texture::_createTex(), Ogre::D3D9Texture::_initMembers(), Ogre::D3D9Texture::_setFinalAttributes(), Ogre::D3D9Texture::_setSrcAttributes(), createSurface2D(), createSurface3D(), D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), load(), loadImage(), loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2().

unsigned long Ogre::Texture::mSrcWidth [protected, inherited]
 

Definition at line 182 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_copyMemoryToSurface(), Ogre::D3D9Texture::_createCubeTex(), Ogre::D3D9Texture::_createDepthStencil(), Ogre::D3D9Texture::_createNormTex(), Ogre::D3D9Texture::_createTex(), Ogre::D3D9Texture::_initMembers(), Ogre::D3D9Texture::_setFinalAttributes(), Ogre::D3D9Texture::_setSrcAttributes(), createSurface2D(), createSurface3D(), D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), load(), loadImage(), loadImage3D(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2().

IDirectDrawSurface7* Ogre::D3DTexture::mSurface [protected]
 

Surface of the (first) device-specific texture.

cube texture individual face names

Definition at line 71 of file OgreD3D7Texture.h.

Referenced by blitImage(), blitImage3D(), copyToTexture(), createSurface2D(), createSurface3D(), getDDSurface(), and unload().

TextureType Ogre::Texture::mTextureType [protected, inherited]
 

Definition at line 177 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_setFinalAttributes(), createSurface(), Ogre::D3D9Texture::D3D9Texture(), D3DTexture(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), Ogre::GLTexture::load(), and load().

TextureUsage Ogre::Texture::mUsage [protected, inherited]
 

Definition at line 179 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_createCubeTex(), Ogre::D3D9Texture::_createNormTex(), Ogre::D3D9Texture::_setSrcAttributes(), copyToTexture(), createSurface2D(), createSurface3D(), Ogre::D3D9Texture::D3D9Texture(), D3DTexture(), Ogre::GLTexture::GLTexture(), Ogre::GLTexture::load(), Ogre::D3D9Texture::load(), and load().

unsigned long Ogre::Texture::mWidth [protected, inherited]
 

Definition at line 171 of file OgreTexture.h.

Referenced by Ogre::D3D9Texture::_initMembers(), Ogre::D3D9Texture::_setFinalAttributes(), Ogre::GLTexture::createRenderTexture(), createSurface2D(), createSurface3D(), Ogre::GLTexture::generateMipMaps(), Ogre::GLTexture::GLTexture(), Ogre::GLTexture::loadImages(), and Ogre::GLTexture::rescaleNPower2().


The documentation for this class was generated from the following files:

Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:12:28 2004