our_dick/include/graphics/lightable.hpp
2020-10-11 12:36:05 -07:00

50 lines
1.4 KiB
C++

/**
This file is a part of our_dick
Copyright (C) 2020 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 <http://www.gnu.org/licenses/>.
*/
#ifndef OUR_DICK_GRAPHICS_LIGHTABLE_HPP
#define OUR_DICK_GRAPHICS_LIGHTABLE_HPP
#include "math/vec.hpp"
#include "gl_include.hpp"
namespace gfx{
class lightable
{
protected:
math::vec3<GLfloat> m_ambient;
math::vec3<GLfloat> m_diffuse;
math::vec3<GLfloat> m_specular;
GLfloat m_shininess;
public:
void set_ambient(const math::vec3<GLfloat>& a);
void set_diffuse(const math::vec3<GLfloat>& d);
void set_specular(const math::vec3<GLfloat>& s);
void set_shininess(GLfloat s);
const math::vec3<GLfloat>& get_ambient()const;
const math::vec3<GLfloat>& get_diffuse()const;
const math::vec3<GLfloat>& get_specular()const;
GLfloat get_shininess()const;
};
}
#endif