Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Icons
IconDefinition.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Types.h"
6
#include "ModelRepository.h"
7
#include "IMaterial.h"
8
#include "Bounds.h"
9
#include <string>
10
#include <vector>
11
12
namespace
Eegeo
13
{
14
namespace
Icons
15
{
16
typedef
std::vector<Rendering::Materials::IMaterial*> TMaterialVector;
17
18
struct
IconDefinition
19
{
20
typedef
std::string IdType;
21
22
IconDefinition
(u16 _index,
23
float
_x,
24
float
_y,
25
float
_width,
26
float
_height,
27
u16 _texturePage,
28
const
Geometry::Bounds2D
& iconBounds,
29
u16 uvLeft,
30
u16 uvTop,
31
u16 uvRight,
32
u16 uvBottom)
33
: bounds(iconBounds)
34
, x(_x)
35
, y(_y)
36
, width(_width)
37
, height(_height)
38
, texturePage(_texturePage)
39
, index(_index)
40
, u0(uvLeft)
41
, v0(uvTop)
42
, u1(uvRight)
43
, v1(uvBottom)
44
{
45
46
}
47
48
Geometry::Bounds2D
bounds;
49
float
x;
50
float
y;
51
float
width;
52
float
height;
53
u16 texturePage;
54
u16 index;
55
56
u16 u0;
57
u16 v0;
58
u16 u1;
59
u16 v1;
60
61
};
62
63
typedef
Labels::ModelRepository<IconDefinition::IdType, const IconDefinition*>
_TIconDefinitionRepository
;
64
65
class
IconDefinitionRepository
:
public
_TIconDefinitionRepository
66
{
67
};
68
69
}
70
}
Generated on Sat Jun 10 2023 02:00:30 for eeGeo Platform SDK by
1.8.3.1