Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Rendering
Materials
NullMaterial.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "IMaterial.h"
6
#include "Rendering.h"
7
#include "GLState.h"
8
#include "IdTypes.h"
9
#include <string>
10
11
namespace
Eegeo
12
{
13
namespace
Rendering
14
{
15
namespace
Materials
16
{
17
class
NullMaterial
:
public
IMaterial
18
{
19
public
:
20
NullMaterial
(TMaterialId materialId,
Shader
& shader,
const
std::string& name)
21
: m_materialId(materialId)
22
, m_shader(shader)
23
, m_name(name)
24
{
25
}
26
27
const
TMaterialId GetId()
const
{
return
m_materialId; }
28
29
const
Shader
& GetShader()
const
{
return
m_shader; }
30
31
void
SetState(
Rendering::GLState
& glState)
const
{}
32
33
void
SetStatePerRenderable(
const
Rendering::RenderableBase
* renderableBase,
Rendering::GLState
& glState)
const
{}
34
35
const
std::string& GetName()
const
{
return
m_name; }
36
37
private
:
38
const
TMaterialId m_materialId;
39
Shader
& m_shader;
40
const
std::string m_name;
41
};
42
}
43
}
44
}
Generated on Sat Jun 10 2023 02:00:32 for eeGeo Platform SDK by
1.8.3.1