All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
UnityAsyncTextureObserver.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Unity.h"
6 #include "IAsyncTextureObserver.h"
7 #include "Rendering.h"
8 
9 #include <string>
10 
11 namespace Eegeo
12 {
13  namespace Unity
14  {
16  {
17  public:
18  UnityAsyncTextureObserver(const std::string& materialName, UnityTextureFileLoader& textureLoader);
19 
20  virtual void OnTextureLoadSuccess(const Rendering::AsyncTexturing::IAsyncTexture& loadedTexture) override;
21 
22  virtual void OnTextureLoadFail(const Rendering::AsyncTexturing::IAsyncTexture& loadedTexture) override;
23 
24  private:
25  const std::string m_materialName;
26  UnityTextureFileLoader& m_textureLoader;
27  };
28  }
29 }
30 
31 
32