/* * Gem-graph OpenGL experiments * * Desc: OpenGL utils header * * Copyright (C) 2023 Jean Sirmai * Copyright (C) 2023 Adrien Bourmault * * This file is part of Gem-graph. * * 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 . */ #pragma once #include #include #include /* * Writes basis and tip for all arrows into vertex and color buffers * * @param dimensions (x,y,z) * * @return void */ void arrows_write_terminations (long x, long y, long z); /* * Writes lines for arrow oriented to the east or west into lines buffer * * @param s, * weight, * site * * @return void */ void write_arrow_lines_east_west (long s, int weight, int site); /* * Writes lines for arrow oriented to the zenith or nadir into lines buffer * * @param s, * weight, * site * * @return void */ void write_arrow_lines_zenith_nadir (long s, int weight, int site); /* * Writes lines for arrow oriented to the south or north into lines buffer * * @param s, * weight, * site * * @return void */ void write_arrow_lines_south_north (long s, int weight, int site); /* * Writes the three lines that draw arrow basis (central star) into lines buffer * * @param n * * @return void */ void arrows_write_basis(long n);