feat(scripting): add mesh component script wrappers
This commit is contained in:
@@ -17,6 +17,7 @@ public:
|
||||
const Resources::ResourceHandle<Resources::Mesh>& GetMeshHandle() const { return m_mesh; }
|
||||
const std::string& GetMeshPath() const { return m_meshPath; }
|
||||
|
||||
void SetMeshPath(const std::string& meshPath);
|
||||
void SetMesh(const Resources::ResourceHandle<Resources::Mesh>& mesh);
|
||||
void SetMesh(Resources::Mesh* mesh);
|
||||
void ClearMesh();
|
||||
|
||||
@@ -18,8 +18,10 @@ public:
|
||||
size_t GetMaterialCount() const { return m_materials.size(); }
|
||||
Resources::Material* GetMaterial(size_t index) const;
|
||||
const Resources::ResourceHandle<Resources::Material>& GetMaterialHandle(size_t index) const;
|
||||
const std::string& GetMaterialPath(size_t index) const;
|
||||
const std::vector<std::string>& GetMaterialPaths() const { return m_materialPaths; }
|
||||
|
||||
void SetMaterialPath(size_t index, const std::string& materialPath);
|
||||
void SetMaterial(size_t index, const Resources::ResourceHandle<Resources::Material>& material);
|
||||
void SetMaterial(size_t index, Resources::Material* material);
|
||||
void SetMaterials(const std::vector<Resources::ResourceHandle<Resources::Material>>& materials);
|
||||
|
||||
Reference in New Issue
Block a user