27 lines
680 B
C++
27 lines
680 B
C++
// Copyright (c) 2022 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
#pragma once
|
|
#include "scene/SceneItemComponent.hpp"
|
|
#include "display/shader/Shader.hpp"
|
|
|
|
namespace Dawn {
|
|
class Material : public SceneItemComponent {
|
|
public:
|
|
/**
|
|
* Material component constructor.
|
|
*
|
|
* @param item Scene Item this component belongs to.
|
|
*/
|
|
Material(SceneItem *item);
|
|
|
|
/**
|
|
* Returns the shader that this material uses.
|
|
*
|
|
* @return Shader that belongs to this material.
|
|
*/
|
|
virtual Shader * getShader() = 0;
|
|
};
|
|
} |