Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Rendering
SceneModels
Resources
SceneModelTextureResource.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "SceneModelResourceBase.h"
6
#include "Types.h"
7
#include "IAsyncTexture.h"
8
#include "IdTypes.h"
9
#include <string>
10
11
namespace
Eegeo
12
{
13
namespace
Rendering
14
{
15
namespace
SceneModels
16
{
17
class
SceneModelTextureResource
:
public
SceneModelResourceBase
,
private
Eegeo::NonCopyable
18
{
19
public
:
20
21
SceneModelTextureResource
(
const
std::string& name,
AsyncTexturing::IAsyncTexture
* pAsyncTexture)
22
:
SceneModelResourceBase
(name)
23
, m_asyncTexture(*pAsyncTexture)
24
{
25
Eegeo_ASSERT(pAsyncTexture != NULL);
26
}
27
28
~
SceneModelTextureResource
()
29
{
30
m_asyncTexture.Release();
31
}
32
33
AsyncTexturing::IAsyncTexture
& GetTexture()
const
{
return
m_asyncTexture; }
34
35
private
:
36
37
AsyncTexturing::IAsyncTexture
& m_asyncTexture;
38
39
};
40
}
41
}
42
}
Generated on Sat Jun 10 2023 02:00:32 for eeGeo Platform SDK by
1.8.3.1