mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-02-20 08:14:55 -05:00
33 lines
797 B
C++
33 lines
797 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <glm/glm.hpp>
|
|
|
|
namespace wowee {
|
|
namespace rendering {
|
|
|
|
class Shader;
|
|
class Texture;
|
|
|
|
class Material {
|
|
public:
|
|
Material() = default;
|
|
~Material() = default;
|
|
|
|
void setShader(std::shared_ptr<Shader> shader) { this->shader = shader; }
|
|
void setTexture(std::shared_ptr<Texture> texture) { this->texture = texture; }
|
|
void setColor(const glm::vec4& color) { this->color = color; }
|
|
|
|
std::shared_ptr<Shader> getShader() const { return shader; }
|
|
std::shared_ptr<Texture> getTexture() const { return texture; }
|
|
const glm::vec4& getColor() const { return color; }
|
|
|
|
private:
|
|
std::shared_ptr<Shader> shader;
|
|
std::shared_ptr<Texture> texture;
|
|
glm::vec4 color = glm::vec4(1.0f);
|
|
};
|
|
|
|
} // namespace rendering
|
|
} // namespace wowee
|