All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AndroidAsyncTextureLoad.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "IAsyncTextureLoad.h"
6 #include "Helpers.h"
7 #include "Types.h"
8 #include "GLHelpers.h"
9 #include "ICallback.h"
10 #include "AsyncTexturing.h"
11 #include <string>
12 #include <vector>
13 
14 namespace Eegeo
15 {
16  namespace Android
17  {
19  {
20  Helpers::ITextureFileLoader& m_textureLoader;
22  std::string m_fileExtension;
23  const std::vector<Byte>* m_pResourceBuffer;
24  void* m_pUserData;
25  bool m_mipmap;
26  bool m_cancelled;
27  bool m_started;
28 
30  Helpers::ITextureFileLoader& textureLoader,
32  const std::string& fileExtension,
33  const std::vector<Byte>* pResourceBuffer,
34  void* pUserData,
35  bool mipmap);
36 
38 
39  public:
40 
41  static AndroidAsyncTextureLoad& Build(
42  Helpers::ITextureFileLoader& textureLoader,
44  const std::string& fileExtension,
45  const std::vector<Byte>& resourceBuffer,
46  void* pUserData,
47  bool mipmap);
48 
49  virtual void Begin();
50 
51  virtual void Cancel();
52  };
53  }
54 }