All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
EmscriptenRasterTerrainTextureLoader.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "IAsyncBufferTextureRequestor.h"
7 #include "Helpers.h"
8 #include "AsyncTexturing.h"
9 #include <string>
10 #include <vector>
11 
12 namespace Eegeo
13 {
14  namespace Emscripten
15  {
17  {
18  public:
20  Eegeo::Helpers::ITextureFileLoader& textureFileLoader,
21  Rendering::AsyncTexturing::IAsyncTexture& placeholderTexture,
23  );
24 
26 
27  Rendering::AsyncTexturing::IAsyncTexture& RequestTextureFromBuffer(
28  std::vector<Byte>& buffer,
29  const std::string& textureName,
30  const std::string& fileExtension,
31  bool generateMipmaps=false);
32 
33  private:
34  Eegeo::Helpers::ITextureFileLoader& m_textureFileLoader;
35  Rendering::AsyncTexturing::IAsyncTexture& m_placeholderTexture;
37  };
38  }
39 }