mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-28 09:33:52 +00:00
Initial commit: wowee native WoW 3.3.5a client
This commit is contained in:
commit
ce6cb8f38e
147 changed files with 32347 additions and 0 deletions
32
include/rendering/material.hpp
Normal file
32
include/rendering/material.hpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue