BRE12
BRE
SceneLoader
MaterialPropertiesLoader.h
1
#pragma once
2
3
#include <string>
4
#include <unordered_map>
5
6
#include <ShaderUtils/MaterialProperties.h>
7
8
namespace
YAML
{
9
class
Node;
10
}
11
12
namespace
BRE
{
13
class
MaterialPropertiesLoader
{
14
public
:
15
MaterialPropertiesLoader
()
16
{}
17
MaterialPropertiesLoader
(
const
MaterialPropertiesLoader
&) =
delete
;
18
const
MaterialPropertiesLoader
& operator=(
const
MaterialPropertiesLoader
&) =
delete
;
19
MaterialPropertiesLoader
(
MaterialPropertiesLoader
&&) =
delete
;
20
MaterialPropertiesLoader
& operator=(
MaterialPropertiesLoader
&&) =
delete
;
21
22
void
LoadMaterialsProperties(
const
YAML::Node
& rootNode) noexcept;
23
24
const
MaterialProperties
& GetMaterialProperties(
const
std::string& name)
const
noexcept;
25
26
private
:
27
std::unordered_map<std::string, MaterialProperties> mMaterialPropertiesByName;
28
};
29
}
30
BRE
Definition:
Camera.cpp:8
BRE::MaterialProperties
Definition:
MaterialProperties.h:6
YAML
Definition:
DrawableObjectLoader.h:10
BRE::MaterialPropertiesLoader
Definition:
MaterialPropertiesLoader.h:13
YAML::Node
Definition:
node.h:29
Generated by
1.8.12