OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::D3D9Texture Class Reference

#include <OgreD3D9Texture.h>

+ Inheritance diagram for Ogre::D3D9Texture:

Public Member Functions

 D3D9Texture (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual, ManualResourceLoader *loader)
 constructor More...
 
 ~D3D9Texture ()
 destructor More...
 
void copyToTexture (TexturePtr &target)
 overridden from Texture More...
 
HardwarePixelBufferSharedPtr getBuffer (size_t face, size_t mipmap)
 
IDirect3DCubeTexture9 * getCubeTexture ()
 retrieves a pointer to the cube texture More...
 
IDirect3DTexture9 * getNormTexture ()
 retrieves a pointer to the normal 1D/2D texture More...
 
IDirect3DBaseTexture9 * getTexture ()
 retrieves a pointer to the actual texture More...
 
bool isHardwareGammaReadToBeUsed () const
 Indicates whether the hardware gamma is actually enabled and supported. More...
 
virtual void notifyOnDeviceCreate (IDirect3DDevice9 *d3d9Device)
 
virtual void notifyOnDeviceDestroy (IDirect3DDevice9 *d3d9Device)
 
virtual void notifyOnDeviceLost (IDirect3DDevice9 *d3d9Device)
 
virtual void notifyOnDeviceReset (IDirect3DDevice9 *d3d9Device)
 
bool useDefaultPool ()
 Will this texture need to be in the default pool? More...
 

Static Public Member Functions

static void lockDeviceAccess ()
 
static void unlockDeviceAccess ()
 

Friends

class D3D9HardwarePixelBuffer
 

Constructor & Destructor Documentation

◆ D3D9Texture()

Ogre::D3D9Texture::D3D9Texture ( ResourceManager creator,
const String name,
ResourceHandle  handle,
const String group,
bool  isManual,
ManualResourceLoader loader 
)

constructor

◆ ~D3D9Texture()

Ogre::D3D9Texture::~D3D9Texture ( )

destructor

Member Function Documentation

◆ copyToTexture()

void Ogre::D3D9Texture::copyToTexture ( TexturePtr &  target)

overridden from Texture

◆ getBuffer()

HardwarePixelBufferSharedPtr Ogre::D3D9Texture::getBuffer ( size_t  face,
size_t  mipmap 
)

◆ getCubeTexture()

IDirect3DCubeTexture9* Ogre::D3D9Texture::getCubeTexture ( )

retrieves a pointer to the cube texture

◆ getNormTexture()

IDirect3DTexture9* Ogre::D3D9Texture::getNormTexture ( )

retrieves a pointer to the normal 1D/2D texture

◆ getTexture()

IDirect3DBaseTexture9* Ogre::D3D9Texture::getTexture ( )

retrieves a pointer to the actual texture

◆ isHardwareGammaReadToBeUsed()

bool Ogre::D3D9Texture::isHardwareGammaReadToBeUsed ( ) const
inline

Indicates whether the hardware gamma is actually enabled and supported.

Remarks
Because hardware gamma might not actually be supported, we need to ignore it sometimes. Because D3D doesn't encode sRGB in the format but as a sampler state, and we don't want to change the original requested hardware gamma flag (e.g. serialisation) we need another indicator.

◆ lockDeviceAccess()

static void Ogre::D3D9Resource::lockDeviceAccess ( )
staticinherited

◆ notifyOnDeviceCreate()

virtual void Ogre::D3D9Texture::notifyOnDeviceCreate ( IDirect3DDevice9 *  d3d9Device)
virtual

Reimplemented from Ogre::D3D9Resource.

◆ notifyOnDeviceDestroy()

virtual void Ogre::D3D9Texture::notifyOnDeviceDestroy ( IDirect3DDevice9 *  d3d9Device)
virtual

Reimplemented from Ogre::D3D9Resource.

◆ notifyOnDeviceLost()

virtual void Ogre::D3D9Texture::notifyOnDeviceLost ( IDirect3DDevice9 *  d3d9Device)
virtual

Reimplemented from Ogre::D3D9Resource.

◆ notifyOnDeviceReset()

virtual void Ogre::D3D9Texture::notifyOnDeviceReset ( IDirect3DDevice9 *  d3d9Device)
virtual

Reimplemented from Ogre::D3D9Resource.

◆ unlockDeviceAccess()

static void Ogre::D3D9Resource::unlockDeviceAccess ( )
staticinherited

◆ useDefaultPool()

bool Ogre::D3D9Texture::useDefaultPool ( )

Will this texture need to be in the default pool?

Friends And Related Function Documentation

◆ D3D9HardwarePixelBuffer

friend class D3D9HardwarePixelBuffer
friend

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