![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cXResourceFile.h>
Public Member Functions | |
cXResourceFile (const FILECHAR_t *pszFileName) | |
virtual | ~cXResourceFile () |
cStringF | get_FilePath () const |
void | put_FilePath (const FILECHAR_t *pszFileName) |
STDMETHOD_ (cString, get_Name)() const | |
cStringF | get_FullPath () const |
cStringF | MakePeerPath (const FILECHAR_t *pszName) const |
virtual bool | isResourceLoaded () const noexcept |
void | put_LoadedState (HRESULT hResLoad) |
virtual HRESULT | LoadResource () |
![]() | |
cRefBase (int iRefCount=0) noexcept | |
virtual | ~cRefBase () |
int | get_RefCount () const noexcept |
HASHCODE_t | get_HashCode () const noexcept |
STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept | |
virtual void | onFinalRelease () |
bool | isValidObj () const noexcept |
STDMETHOD_ (ULONG, AddRef)(void) override | |
STDMETHOD_ (ULONG, Release)(void) override | |
STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
void | IncRefCount () |
void | DecRefCount () |
bool | isStaticConstruct () const noexcept |
void | StaticConstruct () |
void | StaticDestruct () |
bool | isDestructing () noexcept |
void | SetDestructing () |
Static Public Member Functions | |
static HRESULT GRAYCALL | OnFAIL (HRESULT hRes) |
static. so we can trap all errors here. More... | |
Protected Attributes | |
HRESULT | m_hResLoad |
0=loaded OK, <0 = it failed to load for some reason! OLE_E_BLANK = have not yet tried to load. More... | |
Static Protected Attributes | |
static cStringF | s_sFileLoading |
name of file loading for debug. More... | |
A resource file (DirectX (maybe 3d) related object) that must be loaded and cached. Similar to cXObjPack but not cXObject scriptable. m_sFilePath = if relative (not rooted) path, relative from the base of the g_ResInstall. i.e. X Model File, texture, shader, etc.
Gray3D::cXResourceFile::cXResourceFile | ( | const FILECHAR_t * | pszFileName | ) |
|
virtual |
|
inline |
if relative file path. (relative to g_ResInstall) get_FilePath
cStringF Gray3D::cXResourceFile::get_FullPath | ( | ) | const |
|
inlinevirtualnoexcept |
Reimplemented in Gray3D::cXTextureFile.
|
inlinevirtual |
|
inline |
Get the name of a related object file probably in the same directory.
static. so we can trap all errors here.
void Gray3D::cXResourceFile::put_FilePath | ( | const FILECHAR_t * | pszFileName | ) |
if relative file path. (relative to g_ResInstall)
|
inline |
we tried to load. and succeeded or failed.
|
inline |
|
protected |
0=loaded OK, <0 = it failed to load for some reason! OLE_E_BLANK = have not yet tried to load.
|
staticprotected |
name of file loading for debug.