mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
25 lines
365 B
C++
25 lines
365 B
C++
|
#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;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|