![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cXTextureMgr.h>
Public Member Functions | |
cXTextureMgr (cDXDevice *pDXDev) | |
virtual | ~cXTextureMgr (void) |
cStringF | MakeModelPath (const FILECHAR_t *pszName) |
cStringF | get_LastModelName () const noexcept |
cStringF | get_LastModelDir () const noexcept |
cXTextureFilePtr | FindTextureFile (cStringF &sName, size_t &nTextureFileSize, TEXTURELOAD_t uLoadFlags) const |
cXTextureFilePtr | LoadTextureFile (const FILECHAR_t *pszName, TEXTURELOAD_t uLoadFlags) |
UNITTEST_FRIEND (cXTextureMgr) | |
![]() | |
cDXBase (cDXDevice *pDXDev=nullptr) noexcept | |
virtual | ~cDXBase () |
ID3DDevice * | get_D3DDev () const noexcept |
bool | isInitDevice () const noexcept |
bool | isLostDevice () const noexcept |
virtual HRESULT | InitDeviceObjects (cDXDevice *pDXDev) |
virtual HRESULT | OnResetDeviceX () |
virtual HRESULT | OnLostDeviceX () |
virtual HRESULT | DeleteDeviceObjects () |
UNITTEST_FRIEND (cDXBase) | |
Public Attributes | |
bool | m_bPreLoadAllDefault |
don't wait until texture is needed. pre-load it now. IsClientModeLoading More... | |
![]() | |
cDXDevice * | m_pDXDev |
What device is this attached to (or should be)? InitDeviceObjects() was called and DeleteDeviceObjects() was not. More... | |
cIUnkPtr< ID3DDevice > | m_pD3DDev |
Load textures and manage a named cache for textures. NOTE: Some textures might be loaded onto the cDXDevice. and unloaded/disposed if not needed. reloaded on demand. Manage caching of textures in system (or device?) memory as they may be needed for rendering multiple objects. search for textures that may be in relative paths.
Gray3D::cXTextureMgr::cXTextureMgr | ( | cDXDevice * | pDXDev | ) |
|
virtual |
cXTextureFilePtr Gray3D::cXTextureMgr::FindTextureFile | ( | cStringF & | sName, |
size_t & | nTextureFileSize, | ||
TEXTURELOAD_t | uLoadFlags | ||
) | const |
Find the file (on disk) for the texture. Maybe load it (or not) depending on TEXTURELOAD_t uLoadFlags
|
inlinenoexcept |
|
inlinenoexcept |
cXTextureFilePtr Gray3D::cXTextureMgr::LoadTextureFile | ( | const FILECHAR_t * | pszName, |
TEXTURELOAD_t | uLoadFlags | ||
) |
Load a texture from a file into the texture cache.
cStringF Gray3D::cXTextureMgr::MakeModelPath | ( | const FILECHAR_t * | pszName | ) |
we are loading a model. save the relative path to its relative pathed child textures.
Gray3D::cXTextureMgr::UNITTEST_FRIEND | ( | cXTextureMgr | ) |
bool Gray3D::cXTextureMgr::m_bPreLoadAllDefault |
don't wait until texture is needed. pre-load it now. IsClientModeLoading