Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Data
StencilArea
Materials
StencilAreaFullScreenMaterial.h
1
// Copyright (c) 2015 eeGeo. All rights reserved.
2
3
#pragma once
4
5
#include "Types.h"
6
#include "IMaterial.h"
7
#include "Rendering.h"
8
#include "Lighting.h"
9
#include "VectorMathDecl.h"
10
#include "ColorShader.h"
11
#include <string>
12
13
namespace
Eegeo
14
{
15
namespace
Data
16
{
17
namespace
StencilArea
18
{
19
namespace
Materials
20
{
21
class
StencilAreaFullScreenMaterial
:
protected
Eegeo::NonCopyable
,
public
Rendering::Materials::IMaterial
22
{
23
public
:
24
StencilAreaFullScreenMaterial
(
25
const
Rendering::TMaterialId materialId,
26
const
std::string& name,
27
const
Eegeo::v4
& color,
28
Eegeo::Rendering::Shaders::ColorShader
& shader
29
);
30
31
const
Rendering::TMaterialId GetId()
const
{
return
m_id; }
32
const
Rendering::Shader
& GetShader()
const
{
return
m_shader; }
33
const
std::string& GetName()
const
{
return
m_name; }
34
35
void
SetState(
Rendering::GLState
& glState)
const
;
36
37
void
SetStatePerRenderable(
const
Rendering::RenderableBase
* renderableBase,
Rendering::GLState
& glState)
const
;
38
protected
:
39
const
Rendering::TMaterialId m_id;
40
const
std::string m_name;
41
const
Eegeo::v4
m_color;
42
Eegeo::Rendering::Shaders::ColorShader
& m_shader;
43
};
44
}
45
}
46
}
47
}
Generated on Sat Jun 10 2023 02:00:29 for eeGeo Platform SDK by
1.8.3.1