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
BatchedSpriteMaterial.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Types.h"
6
#include "IMaterial.h"
7
#include "IdTypes.h"
8
#include "BatchedSpriteShader.h"
9
#include "Rendering.h"
10
#include "TextureMinifyType.h"
11
#include <string>
12
13
namespace
Eegeo
14
{
15
namespace
Rendering
16
{
17
namespace
Materials
18
{
22
class
BatchedSpriteMaterial
:
protected
Eegeo::NonCopyable
,
public
IMaterial
23
{
24
public
:
25
BatchedSpriteMaterial
(
const
TMaterialId materialId,
26
const
std::string& name,
27
Shaders::BatchedSpriteShader
& shader,
28
TTextureId textureId,
29
TextureMinifyType textureMinifyType = Rendering::TextureMinify_Linear
30
);
31
32
const
TMaterialId GetId()
const
{
return
m_id; }
33
const
Shader
& GetShader()
const
{
return
m_shader; }
34
const
std::string& GetName()
const
{
return
m_name; }
35
36
void
SetState(
Rendering::GLState
& glState)
const
;
37
38
void
SetStatePerRenderable(
const
Rendering::RenderableBase
* renderableBase,
Rendering::GLState
& glState)
const
;
39
40
protected
:
41
const
TMaterialId m_id;
42
const
std::string m_name;
43
Shaders::BatchedSpriteShader
& m_shader;
44
TTextureId m_textureId;
45
TextureMinifyType m_textureMinifyType;
46
};
47
}
48
}
49
}
Generated on Sat Jun 10 2023 02:00:32 for eeGeo Platform SDK by
1.8.3.1