engine/include/resources/material.hpp

28 lines
417 B
C++
Raw Normal View History

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