2#include "gfx/mdl/materialInfo.h"
6 private ref class MaterialInfo
8 kmyGfx::mtlInfo* obj =
nullptr;
10 System::String^ convert(
const char* ptr)
12 if (*ptr ==
'\0')
return nullptr;
14 return XXSharpKmyBase::StringConv::New(ptr);
18 MaterialInfo(kmyGfx::mtlInfo* base)
24 System::String^ getName()
26 return convert(obj->m_name.cstr());
29 System::String^ getDiffuseTextureName()
31 return convert(obj->m_diffuseTextureName.cstr());
34 System::String^ getAmbientTextureName()
36 return convert(obj->m_ambientTextureName.cstr());
39 System::String^ getEmissionTextureName()
41 return convert(obj->m_emissionTextureName.cstr());
44 System::String^ getNormalTextureName()
46 return convert(obj->m_normalTextureName.cstr());
49 System::String^ getSpecularTextureName()
51 return convert(obj->m_specularTextureName.cstr());