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

#include <cModel.h>

Inheritance diagram for Gray3D::cModel:
Gray3D::cXResourceFile Gray::cRefBase IUnknown

Public Member Functions

 cModel (const FILECHAR_t *pszFileName)
 
 UNITTEST_FRIEND (cModel)
 
- 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 ()
 

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...
 
- 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...
 

Detailed Description

Define a possibly complex hierarchy of Mesh/Model parts. i.e. collections of meshes to make up a single model.

Note
This is NOT an instance of a model. just a definition of it.
  1. May have a list of animations attached.
  2. frames may be named to allow attachment points to the model.
Model root may have multiple frames. Not just a single root frame for some reason.

Constructor & Destructor Documentation

◆ cModel()

Gray3D::cModel::cModel ( const FILECHAR_t pszFileName)
inline

Member Function Documentation

◆ UNITTEST_FRIEND()

Gray3D::cModel::UNITTEST_FRIEND ( cModel  )

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