mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
28 lines
417 B
C++
28 lines
417 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace engine::resources {
|
|
|
|
class Shader;
|
|
class Texture;
|
|
|
|
class Material {
|
|
|
|
public:
|
|
Material(std::shared_ptr<Shader> shader);
|
|
~Material();
|
|
Material(const Material&) = delete;
|
|
Material& operator=(const Material&) = delete;
|
|
|
|
auto getShader() { return m_shader.get(); }
|
|
|
|
std::shared_ptr<Texture> m_texture;
|
|
|
|
private:
|
|
const std::shared_ptr<Shader> m_shader;
|
|
|
|
};
|
|
|
|
}
|