engine/include/resources/material.hpp

25 lines
365 B
C++
Raw Normal View History

2022-12-20 23:51:04 +00:00
#pragma once
#include <memory>
namespace engine::resources {
class Shader;
class Material {
public:
Material(std::shared_ptr<Shader> shader);
~Material();
Material(const Material&) = delete;
Material& operator=(const Material&) = delete;
Shader* getShader() { return m_shader.get(); }
private:
const std::shared_ptr<Shader> m_shader;
};
}