Graphics::ITextureManager class

Derived classes

class cTextureManager
The implementation of ITextureManager; this should only be used for extending and detouring.

Public types

enum (anonymous) { kForceLoad = 2, kSetLOD = 4 }

Public static functions

static auto Get() -> ITextureManager*
Returns the active texture manager.

Constructors, destructors, conversion operators

~ITextureManager() virtual

Public functions

auto AddRef() -> int pure virtual
auto Release() -> int pure virtual
auto Initialize() -> bool pure virtual
auto func10h() -> bool pure virtual
void func14h() pure virtual
auto EvictManagedResources() -> int pure virtual
auto GetTexture(const struct ResourceKey name, int flags = 0) -> Texture* pure virtual
Gets the texture stored with the given file name.
auto GetRasterTexture(uint32_t instanceID, uint32_t groupID, char arg_8 = 0) -> Texture* pure virtual
Same as GetTexture().
auto HasTexture(const struct ResourceKey name) const -> bool pure virtual
Tells whether a texture with this name is loaded in this manager, or a .raster texture exists with this name.
auto HasRasterTexture(uint32_t instanceID, uint32_t groupID) const -> bool pure virtual
Same as HasTexture().
auto GetTextureName(const Texture* pTexture) const -> ResourceKey pure virtual
Returns the ResourceKey name of the given Texture.
auto func30h(Texture* texture) -> int pure virtual
auto func34h(Texture* texture) -> bool pure virtual
auto func38h(Texture* texture, void* arg_4) -> bool pure virtual
auto CreateTexture(uint32_t intanceID, uint32_t groupID, int width, int height, int mipmapLevels, int flags, D3DFORMAT format, int) -> Texture* pure virtual
auto func40h(int, int, int, int, int, int) -> int pure virtual
auto func44h(Texture* texture, int, int) -> bool pure virtual
auto func48h(int, int) -> int pure virtual
auto AddTextureFromRaster(uint32_t instanceID, uint32_t groupID, Raster* pRaster, int) -> Texture* pure virtual
auto func50h(int, int, int, int) -> int pure virtual
void func54h(Texture* texture, bool) pure virtual
auto func58h(int, int, int, int) -> bool pure virtual
auto func5Ch(Texture* texture, int, int, int) -> bool pure virtual
auto func60h(const struct ResourceKey name) -> bool pure virtual
auto func64h(uint32_t instanceID, uint32_t groupID) -> bool pure virtual
auto func68h(Texture* texture) -> bool pure virtual
void func6Ch(int) pure virtual
void func70h(int) pure virtual
auto func74h() -> int pure virtual
void func78h(int) pure virtual

Enum documentation

enum Graphics::ITextureManager::(anonymous)

Enumerators
kForceLoad

Forces the texture to load. If no .raster exists, this will look for rw4 as well.

kSetLOD

If enabled, SetLOD() will be called to the texture with the current level of detail.

Function documentation

Texture* Graphics::ITextureManager::GetTexture(const struct ResourceKey name, int flags = 0) pure virtual

Gets the texture stored with the given file name.

Parameters
name
flags

If the texture is not already loaded, it will be loaded in this method. The type ID will be ignored; generally it tries to load .raster textures.

In order to load textures that are not .raster, you must pass kForceLoad as a parameter.

Texture* Graphics::ITextureManager::GetRasterTexture(uint32_t instanceID, uint32_t groupID, char arg_8 = 0) pure virtual

Same as GetTexture().

Parameters
instanceID
groupID
arg_8

bool Graphics::ITextureManager::HasTexture(const struct ResourceKey name) const pure virtual

Tells whether a texture with this name is loaded in this manager, or a .raster texture exists with this name.

Parameters
name The name of the texture. The type ID will be ignored.

bool Graphics::ITextureManager::HasRasterTexture(uint32_t instanceID, uint32_t groupID) const pure virtual

Same as HasTexture().

Parameters
instanceID
groupID

ResourceKey Graphics::ITextureManager::GetTextureName(const Texture* pTexture) const pure virtual

Returns the ResourceKey name of the given Texture.

Parameters
pTexture The Texture whose name will be returned.

The type ID might be irrelevant.