All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
UnityAsyncCubeTextureLoad.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "IAsyncTextureLoad.h"
6 #include "Types.h"
7 #include "ICallback.h"
8 #include "AsyncTexturing.h"
9 #include "Unity.h"
10 #include <vector>
11 
12 namespace Eegeo
13 {
14  namespace Unity
15  {
17  {
18  UnityTextureFileLoader& m_textureLoader;
20  std::vector<const std::vector<Byte>*> m_cubeBuffers;
21  void* m_pUserData;
22  bool m_cancelled;
23  bool m_started;
24 
26  UnityTextureFileLoader& textureLoader,
28  const std::vector<const std::vector<Byte>*>& cubeFaceBuffers,
29  void* pUserData);
30 
32 
33  public:
34 
35  static UnityAsyncCubeTextureLoad& Build(
36  UnityTextureFileLoader& textureLoader,
38  const std::vector<const std::vector<Byte>*>& cubeFaceBuffers,
39  void* pUserData);
40 
41  virtual void Begin();
42 
43  virtual void Cancel();
44  };
45  }
46 }