Radium Engine  1.5.0
MaterialConverters.hpp
1 #pragma once
2 
3 #include <Engine/RaEngine.hpp>
4 
5 #include <functional>
6 #include <string>
7 
8 namespace Ra {
9 namespace Engine {
10 namespace Data {
11 class Material;
12 }
13 } // namespace Engine
14 namespace Core {
15 namespace Asset {
16 class MaterialData;
17 }
18 } // namespace Core
19 
23 
24 namespace Engine {
25 namespace Data {
29 
40 namespace EngineMaterialConverters {
41 
50 
55 
59 RA_ENGINE_API bool registerMaterialConverter( const std::string& name,
60  ConverterFunction converter );
61 
66 RA_ENGINE_API bool removeMaterialConverter( const std::string& name );
67 
73 RA_ENGINE_API std::pair<bool, ConverterFunction> getMaterialConverter( const std::string& name );
74 
75 RA_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....
Ra::Engine::Data::Material * RadiumMaterialPtr
bool removeMaterialConverter(const std::string &name)
bool registerMaterialConverter(const std::string &name, ConverterFunction converter)
std::pair< bool, ConverterFunction > getMaterialConverter(const std::string &name)
std::function< RadiumMaterialPtr(AssetMaterialPtr)> ConverterFunction
Definition: Cage.cpp:3