Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray3D::cModelXLoader Class Reference

#include <cModelXLoader.h>

Inheritance diagram for Gray3D::cModelXLoader:
Gray3D::cModelX Gray3D::cXResourceFile Gray::cRefBase IUnknown

Public Member Functions

 cModelXLoader (const FILECHAR_t *pszSrcPath, ID3DDevice *pDev)
 
- Public Member Functions inherited from Gray3D::cModelX
 cModelX (const FILECHAR_t *pszFileName)
 
virtual ~cModelX ()
 
virtual HRESULT LoadMeshHierarchy (const FILECHAR_t *pstrMeshXFilePath, IDirect3DDevice9 *pd3dDevice)
 
virtual HRESULT DeleteDeviceObjects ()
 
HRESULT FrameMove (float fElapsedTime)
 
cModelXFrameget_FrameRoot () const
 
ModelX_FrameMask_t get_TotalFlags () const
 
void UpdateXHeader ()
 
const cBounds3f & get_BBox ()
 
const cSpherefget_BSphere ()
 
int ComputeBoundingBox (cBounds3f &bres)
 
int ComputeBoundingSphere (cSpheref &bsphere)
 
cModelXFrameFindFrame (const ATOMCHAR_t *pszFrameName) const
 
void DestroyFrameX (cModelXFrame *pFrame)
 
STDMETHOD() CreateFrame (const char *pszName, _D3DXFRAME **ppNewFrame)
 ID3DXAllocateHierarchy. More...
 
STDMETHOD() CreateMeshContainer (const char *pszName, const _D3DXMESHDATA *pMeshData, const _D3DXMATERIAL *pMaterials, const _D3DXEFFECTINSTANCE *pEffectInstances, DWORD NumMaterials, const DWORD *pAdjacency, ID3DXSkinInfo *, _D3DXMESHCONTAINER **ppNewMeshCont)
 
STDMETHOD() DestroyFrame (_D3DXFRAME *pFrameToFree)
 
STDMETHOD() DestroyMeshContainer (_D3DXMESHCONTAINER *pMeshContBase)
 
STDMETHOD() LoadTopLevelData (ID3DXFileData *pData)
 ID3DXLoadUserData. More...
 
STDMETHOD() LoadFrameChildData (_D3DXFRAME *pF, ID3DXFileData *pData)
 
STDMETHOD() LoadMeshChildData (_D3DXMESHCONTAINER *pMC, ID3DXFileData *pData)
 
 UNITTEST_FRIEND (cModelX)
 
- Public Member Functions inherited from Gray3D::cXResourceFile
 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 ()
 
- Public Member Functions inherited from Gray::cRefBase
 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 ()
 

Public Attributes

cIUnkPtr< ID3DDevicem_pd3dDevice
 
- Public Attributes inherited from Gray3D::cModelX
cModelXHeader m_ModelXHeader
 
cModelXFramem_pFrameRoot
 created by CreateFrame() (a list) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gray3D::cXResourceFile
static HRESULT GRAYCALL OnFAIL (HRESULT hRes)
 static. so we can trap all errors here. More...
 
- Static Public Attributes inherited from Gray3D::cModelX
static const char * k_szFrameNames [ModelX_FrameName_QTY+1]
 
- Protected Attributes inherited from Gray3D::cModelX
bool m_bXHeaderValid
 m_ModelXHeader is valid ? read or computed. More...
 
ModelX_FrameMask_t m_uTotalFlags
 m_uFrameFlags | m_uChildrenFlags for all frames More...
 
- Protected Attributes inherited from Gray3D::cXResourceFile
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 inherited from Gray3D::cXResourceFile
static cStringF s_sFileLoading
 name of file loading for debug. More...
 

Constructor & Destructor Documentation

◆ cModelXLoader()

Gray3D::cModelXLoader::cModelXLoader ( const FILECHAR_t pszSrcPath,
ID3DDevice pDev 
)
inline

Member Data Documentation

◆ m_pd3dDevice

cIUnkPtr<ID3DDevice> Gray3D::cModelXLoader::m_pd3dDevice

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