/**
This file is a part of our_dick
Copyright (C) 2022 rexy712
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
#ifndef OUR_DICK_GRAPHICS_WIP_OGL_MATERIAL_HPP
#define OUR_DICK_GRAPHICS_WIP_OGL_MATERIAL_HPP
#include
#include "gfx/ogl/shader_program.hpp"
#include "gfx/ogl/texture.hpp"
#include //shared_ptr
namespace wip::gfx::ogl{
class material
{
public:
std::shared_ptr<::gfx::ogl::shader_program> shader;
std::shared_ptr<::gfx::ogl::texture> diffuse_texture;
rml::vec4f diffuse;
rml::vec4f specular;
rml::vec4f ambient;
float shininess;
material(const std::shared_ptr<::gfx::ogl::shader_program>& sh);
material(const material&) = default;
material(material&&) = default;
~material(void) = default;
material& operator=(const material&) = default;
material& operator=(material&&) = default;
void bind(void);
};
}
#endif