6 #include "IAsyncTexture.h"
7 #include "RefcountedAsyncTexture.h"
10 #include "AsyncTexturing.h"
11 #include "Rendering.h"
13 #include "CubeFaceFileNames.h"
22 namespace AsyncTexturing
27 typedef std::vector<Eegeo::Web::IWebLoadRequest*> TFaceRequests;
28 typedef std::vector<const std::vector<Byte>*> TFaceResponseBuffers;
34 bool tryToUpdateIfModified=
false);
36 void DestroyTexture();
37 const std::string GetUrl()
const;
39 bool IsLoaded()
const;
40 bool IsComplete()
const;
41 bool IsTryToUpdateIfModified()
const;
42 bool HasMipMaps()
const {
return false; }
45 void ClearWebLoadRequest(
int cubeFaceIndex);
46 void AttachBuffer(
int cubeFaceIndex,
const std::vector<Byte>& buffer);
50 bool AllBuffersReady()
const;
51 TFaceResponseBuffers TransferOwnershipOfBuffers();
64 bool m_tryToUpdateIfModified;
65 TFaceRequests m_webLoadRequests;
66 TFaceResponseBuffers m_faceResponseBuffers;
68 const int m_fileCount;