Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Rendering
Renderables
UniformColoredRenderable.h
1
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
2
3
#pragma once
4
5
#include "WorldMeshRenderable.h"
6
#include "LayerIds.h"
7
#include "IdTypes.h"
8
#include "Rendering.h"
9
#include "VectorMathDecl.h"
10
#include "Graphics.h"
11
12
namespace
Eegeo
13
{
14
namespace
Rendering
15
{
16
namespace
Renderables
17
{
18
class
UniformColoredRenderable
:
public
WorldMeshRenderable
19
{
20
public
:
21
UniformColoredRenderable
(
22
const
LayerIds::Values layerId,
23
Materials::IMaterial
* material,
24
const
VertexLayouts::VertexBinding
& vertexBinding,
25
Rendering::Mesh
* pMesh,
26
const
Eegeo::dv3
ecefPosition,
27
const
Eegeo::v4
initialColor,
28
bool
affectedByFlattening =
true
)
29
:
WorldMeshRenderable
(layerId, material, vertexBinding, pMesh, ecefPosition, affectedByFlattening)
30
, m_color(initialColor)
31
{
32
33
}
34
35
void
SetColor(
const
v4
& color) { m_color = color; }
36
v4
GetColor()
const
{
return
m_color; }
37
38
protected
:
39
v4
m_color;
40
};
41
}
42
}
43
}
Generated on Sat Jun 10 2023 02:00:32 for eeGeo Platform SDK by
1.8.3.1