All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
UnityAsyncTextureLoad.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 <string>
11 #include <vector>
12 
13 namespace Eegeo
14 {
15  namespace Unity
16  {
18  {
19  UnityTextureFileLoader& m_textureLoader;
21  std::string m_fileExtension;
22  const std::vector<Byte>* m_pResourceBuffer;
23  void* m_pUserData;
24  bool m_mipmap;
25  bool m_cancelled;
26  bool m_started;
27 
29  UnityTextureFileLoader& textureLoader,
31  const std::string& fileExtension,
32  const std::vector<Byte>* pResourceBuffer,
33  void* pUserData,
34  bool mipmap);
35 
37 
38  public:
39 
40  static UnityAsyncTextureLoad& Build(
41  UnityTextureFileLoader& textureLoader,
43  const std::string& fileExtension,
44  const std::vector<Byte>& resourceBuffer,
45  void* pUserData,
46  bool mipmap);
47 
48  virtual void Begin();
49 
50  virtual void Cancel();
51  };
52  }
53 }