Radium Engine  1.5.20
Loading...
Searching...
No Matches
MaterialConverters.hpp
1#pragma once
2
3#include <Engine/RaEngine.hpp>
4
5#include <functional>
6#include <string>
7
8namespace Ra {
9namespace Engine {
10namespace Data {
11class Material;
12}
13} // namespace Engine
14namespace Core {
15namespace Asset {
16class MaterialData;
17}
18} // namespace Core
19
23
24namespace Engine {
25namespace Data {
29
40namespace EngineMaterialConverters {
41
50
55
59RA_ENGINE_API bool registerMaterialConverter( const std::string& name,
60 ConverterFunction converter );
61
66RA_ENGINE_API bool removeMaterialConverter( const std::string& name );
67
74
75RA_ENGINE_API bool cleanup();
76} // namespace EngineMaterialConverters
77} // namespace Data
78} // namespace Engine
79} // namespace Ra
represent material data loaded by a file loader. Material data must be identified by a unique name....
Base class for materials.
Definition Material.hpp:24
bool removeMaterialConverter(const std::string &name)
bool registerMaterialConverter(const std::string &name, ConverterFunction converter)
std::pair< bool, ConverterFunction > getMaterialConverter(const std::string &name)
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3