All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BlueSphereResourceLoader.h
1 #pragma once
2 
3 #include "BlueSphere.h"
4 #include "IBlueSphereResourceLoader.h"
5 #include "Types.h"
6 #include "Rendering.h"
7 #include "Helpers.h"
8 #include "POD.h"
9 #include "AsyncTexturing.h"
10 
11 
12 #include <string>
13 
14 namespace Eegeo
15 {
16  namespace BlueSphere
17  {
19  {
20  public:
21  static BlueSphereResourceLoader* Create(
22  BlueSphereViewResources& blueSphereViewResources,
29  const BlueSphereConfiguration& blueSphereConfiguration
30  );
31 
32  ~BlueSphereResourceLoader() override;
33 
34  void Load() override;
35  private:
37  BlueSphereViewResources& blueSphereViewResources,
44  const std::string& sphereModelFilename,
45  const std::string& stalkModelFilename,
46  const std::string& dayTextureFilename,
47  const std::string& nightTextureFilename
48  );
49 
50  bool TryCreatePodFileFromLocalFile(
51  const std::string& modelFilename,
52  const Eegeo::IO::POD::PODFile*& out_pPodFile
53  );
54 
55  BlueSphereViewResources& m_blueSphereViewResources;
58  Eegeo::Helpers::IFileIO& m_fileIO;
62 
63  const std::string m_sphereModelFilename;
64  const std::string m_stalkModelFilename;
65  const std::string m_dayTextureFilename;
66  const std::string m_nightTextureFilename;
67 
68 
69  };
70  }
71 }