OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
#include <OgreTextureGpuManagerListener.h>
Public Member Functions | |
~TextureGpuManagerListener () override | |
virtual uint32 | getFiltersFor (const String &name, const String &aliasName, uint32 filters) const =0 |
getFiltersFor Gets a chance to alter the filters needed for the given texture to load More... | |
virtual size_t | getNumSlicesFor (TextureGpu *texture, TextureGpuManager *textureManager)=0 |
Ogre normally puts Textures into pools (a Type2DArray texture) for efficient rendering Note that only textures of the same resolution and format can be put together in the same pool. More... | |
Public Member Functions inherited from Ogre::TextureGpuListener | |
virtual | ~TextureGpuListener () |
virtual void | notifyTextureChanged (TextureGpu *texture, TextureGpuListener::Reason reason, void *extraData)=0 |
Called when a TextureGpu changed in a way that affects how it is displayed: More... | |
virtual bool | shouldStayLoaded (TextureGpu *texture) |
Return true if this TextureGpu should likely stay loaded or else graphical changes could occur. More... | |
Additional Inherited Members | |
Public Types inherited from Ogre::TextureGpuListener | |
enum | Reason { Unknown , FromStorageToSysRam , FromSysRamToStorage , GainedResidency , LostResidency , PoolTextureSlotChanged , ResidentToSysRamSync , MetadataCacheOutOfDate , ExceptionThrown , FsaaSettingAlteredByApi , ReadyForRendering , Deleted } |
|
override |
|
pure virtual |
getFiltersFor Gets a chance to alter the filters needed for the given texture to load
name | Name of the texture |
aliasName | Alias name of the texture |
filters | Current filters that are to be applied |
Implemented in Ogre::DefaultTextureGpuManagerListener.
|
pure virtual |
Ogre normally puts Textures into pools (a Type2DArray texture) for efficient rendering Note that only textures of the same resolution and format can be put together in the same pool.
This creates two issues:
texture | The first texture to which will be creating a pool based on its parameters |
textureManager | The manager, in case you need more info. |
Implemented in Ogre::DefaultTextureGpuManagerListener.