/** 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_BOARD_GFX_HPP #define OUR_DICK_BOARD_GFX_HPP #include "graphics/material.hpp" #include "graphics/vbo.hpp" #include "graphics/vao.hpp" #include "graphics/shader_program.hpp" #include "graphics/resource_manager.hpp" #include //pair #include //shared_ptr class tile; class board_gfx { private: std::shared_ptr m_textures; gfx::vao m_vao; gfx::vbo m_vbo; public: board_gfx(gfx::resource_manager& resman); ~board_gfx(void) = default; void set_uniforms(gfx::shader_program& sh); void bind_buffers(void); void bind_attributes(void); void buffer_tiles(const tile* t); void render(gfx::shader_program& shader); }; #endif