All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WindowsAsyncCubeTextureLoad.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 Windows
17  {
19  {
20  Helpers::ITextureFileLoader& m_textureLoader;
22  std::vector<const std::vector<Byte>*> m_cubeBuffers;
23  void* m_pUserData;
24  GLuint m_textureId;
25  bool m_cancelled;
26  bool m_started;
27 
29  Helpers::ITextureFileLoader& textureLoader,
31  const std::vector<const std::vector<Byte>*>& cubeFaceBuffers,
32  void* pUserData);
33 
35 
36  public:
37 
38  static WindowsAsyncCubeTextureLoad& Build(
39  Helpers::ITextureFileLoader& textureLoader,
41  const std::vector<const std::vector<Byte>*>& cubeFaceBuffers,
42  void* pUserData);
43 
44  virtual void Begin();
45 
46  virtual void Cancel();
47  };
48  }
49 }