Radium Engine  1.5.20
Loading...
Searching...
No Matches
MaterialData.hpp
1#pragma once
2#include <string>
3#include <vector>
4
5#include <Core/Asset/AssetData.hpp>
6#include <Core/RaCore.hpp>
7
8namespace Ra {
9namespace Core {
10namespace Asset {
11
39class RA_CORE_API MaterialData : public AssetData
40{
41 public:
43 MaterialData( const std::string& name = "", const std::string& type = "AbstractMaterial" );
44 virtual ~MaterialData();
45
47 inline void setName( const std::string& name );
48
50 inline std::string getType() const;
51
52 inline void setType( const std::string& type );
53
55 virtual void displayInfo() const;
56
57 private:
58 std::string m_type;
59};
60
61} // namespace Asset
62} // namespace Core
63} // namespace Ra
64
65namespace Ra {
66namespace Core {
67namespace Asset {
68
72
74inline void MaterialData::setName( const std::string& name ) {
75 m_name = name;
76}
77
80 return m_type;
81}
82
83inline void MaterialData::setType( const std::string& type ) {
84 m_type = type;
85}
86
87} // namespace Asset
88} // namespace Core
89} // namespace Ra
represent material data loaded by a file loader. Material data must be identified by a unique name....
void setName(const std::string &name)
NAME.
std::string getType() const
TYPE.
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3