This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
2015-11-07 13:56:06 +00:00
|
|
|
#ifndef _MATERIAL_HPP_
|
|
|
|
#define _MATERIAL_HPP_
|
|
|
|
|
|
|
|
#include "texture.hpp"
|
|
|
|
|
2015-11-13 10:47:30 +00:00
|
|
|
struct Material
|
2015-11-07 13:56:06 +00:00
|
|
|
{
|
2015-11-09 22:48:21 +00:00
|
|
|
inline void use() const;
|
|
|
|
|
2015-11-11 17:28:11 +00:00
|
|
|
const Texture *texture;
|
2015-11-09 22:48:21 +00:00
|
|
|
};
|
2015-11-07 13:56:06 +00:00
|
|
|
|
2015-11-09 22:48:21 +00:00
|
|
|
void Material::use() const
|
|
|
|
{
|
|
|
|
texture->use();
|
2015-11-07 13:56:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _MATERIAL_HPP_
|