mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
31 lines
595 B
C++
31 lines
595 B
C++
#ifndef ENGINE_INCLUDE_RESOURCES_MATERIAL_H_
|
|
#define ENGINE_INCLUDE_RESOURCES_MATERIAL_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "resources/shader.h"
|
|
#include "resources/texture.h"
|
|
|
|
namespace engine {
|
|
namespace resources {
|
|
|
|
// copyable
|
|
class Material {
|
|
public:
|
|
Material(std::shared_ptr<Shader> shader);
|
|
~Material() = default;
|
|
Material(const Material&);
|
|
Material& operator=(const Material&) = delete;
|
|
|
|
auto GetShader() { return shader_.get(); }
|
|
|
|
std::shared_ptr<Texture> texture_;
|
|
|
|
private:
|
|
const std::shared_ptr<Shader> shader_;
|
|
};
|
|
|
|
} // namespace resources
|
|
} // namespace engine
|
|
|
|
#endif |