Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Emscripten
EmscriptenRasterTerrainTextureLoader.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Types.h"
6
#include "IAsyncBufferTextureRequestor.h"
7
#include "Helpers.h"
8
#include "AsyncTexturing.h"
9
#include <string>
10
#include <vector>
11
12
namespace
Eegeo
13
{
14
namespace
Emscripten
15
{
16
class
EmscriptenRasterTerrainTextureLoader
:
protected
Eegeo::NonCopyable
,
public
Rendering::AsyncTexturing::IAsyncBufferTextureRequestor
17
{
18
public
:
19
EmscriptenRasterTerrainTextureLoader
(
20
Eegeo::Helpers::ITextureFileLoader
& textureFileLoader,
21
Rendering::AsyncTexturing::IAsyncTexture
& placeholderTexture,
22
Rendering::AsyncTexturing::ITextureFactory
& textureFactory
23
);
24
25
~
EmscriptenRasterTerrainTextureLoader
();
26
27
Rendering::AsyncTexturing::IAsyncTexture
& RequestTextureFromBuffer(
28
std::vector<Byte>& buffer,
29
const
std::string& textureName,
30
const
std::string& fileExtension,
31
bool
generateMipmaps=
false
);
32
33
private
:
34
Eegeo::Helpers::ITextureFileLoader
& m_textureFileLoader;
35
Rendering::AsyncTexturing::IAsyncTexture
& m_placeholderTexture;
36
Rendering::AsyncTexturing::ITextureFactory
& m_textureFactory;
37
};
38
}
39
}
Generated on Sat Jun 10 2023 02:00:30 for eeGeo Platform SDK by
1.8.3.1