10 #include "ITextureFileLoader.h"
12 #include "AsyncTexturing.h"
13 #include "IAsyncTextureObserver.h"
35 kModelLoadFlagNone = 0x00000000,
36 kModelLoadFlagPreLit = 0x00000001,
38 kModelLoadFlagDefault = kModelLoadFlagNone
43 std::vector <ModelMesh*> m_pMeshList;
44 std::vector <Node*> m_pNodeList;
46 typedef std::vector<Eegeo::Rendering::AsyncTexturing::IAsyncTexture*> TTextures;
49 typedef std::vector <ModelMaterial*> TMaterialPtrVec;
50 TMaterialPtrVec m_pMaterialList;
55 int m_numOfTexturesComplete;
59 void UpdateMaterialTextures();
71 void UpdateAnimator (
float dt);
78 Node* GetNode (u32 nodeIndex);
79 Node* FindNode (
const char* nodeName);
83 bool TryGetMaterialByName(
const std::string& materialName,
ModelMaterial*& out_pFoundMaterial)
const;
84 u32 GetNumMaterials ();
85 u32 GetNumTextures ()
const;
93 static Model* CreateFromPODStream(std::istream& stream,
size_t size,
96 static Model* CreateFromBuffer(
const std::vector<Byte>& buffer,