From 864e06618f0677a37970bfb98dc48d031dcffe69 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Mon, 28 Oct 2024 14:21:22 +0100 Subject: [PATCH] src/*: add proper LICENSE notices --- src/automaton.c | 26 ++++++++++++++++++++++++++ src/callback.c | 26 ++++++++++++++++++++++++++ src/contain.c | 26 ++++++++++++++++++++++++++ src/dialog.c | 26 ++++++++++++++++++++++++++ src/display.c | 26 ++++++++++++++++++++++++++ src/draw.c | 37 +++++++++++++++++++------------------ src/graph_area.c | 35 +++++++++++++++++++---------------- src/graph_stack.c | 37 +++++++++++++++++++------------------ src/grid.c | 36 +++++++++++++++++++----------------- src/init.c | 36 +++++++++++++++++++----------------- src/main.c | 33 +++++++++++++++++++++++++-------- src/parsing.c | 36 +++++++++++++++++++----------------- src/shader.frag | 28 +++++++++++++++++++++++++++- src/shader.vert | 28 +++++++++++++++++++++++++++- src/texts.c | 33 +++++++++++++++++++++++++-------- src/tree.c | 26 ++++++++++++++++++++++++++ 16 files changed, 374 insertions(+), 121 deletions(-) diff --git a/src/automaton.c b/src/automaton.c index 2d35cf8..07a7e3a 100644 --- a/src/automaton.c +++ b/src/automaton.c @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #include #include #include "../include/callback.h" diff --git a/src/callback.c b/src/callback.c index 6906850..94ac2d4 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #include #include diff --git a/src/contain.c b/src/contain.c index e08b1d4..c89cd59 100644 --- a/src/contain.c +++ b/src/contain.c @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #include #include diff --git a/src/dialog.c b/src/dialog.c index 8a4fcd3..28109eb 100644 --- a/src/dialog.c +++ b/src/dialog.c @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #include "../include/callback.h" void dialog_window_design (GtkWindow *main_window, GtkWindow *dialog_window){ diff --git a/src/display.c b/src/display.c index b3e7f4a..8d54e70 100644 --- a/src/display.c +++ b/src/display.c @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #include #include diff --git a/src/draw.c b/src/draw.c index 3dd95a9..8898abb 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1,27 +1,28 @@ -/* - * Gem-graph OpenGL experiments +/** + * @file + * Phantom docs (TODO) * - * Desc: GL functions + * This file is part of Gem-graph. * - * Copyright (C) 2023 Adrien Bourmault - * Copyright (C) 2023 Jean Sirmai + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai * - * 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 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. * - * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * @endcond */ - /* * Writes values to describe a vertex at (x,y,z) intoq the vertex buffer * diff --git a/src/graph_area.c b/src/graph_area.c index 6fbc30c..b8ff0de 100644 --- a/src/graph_area.c +++ b/src/graph_area.c @@ -1,24 +1,27 @@ -/* - * Gem-graph OpenGL experiments +/** + * @file + * Phantom docs (TODO) * - * Desc: User interface functions + * This file is part of Gem-graph. * - * Copyright (C) 2023 Adrien Bourmault + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai * - * 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 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. * - * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * @endcond */ #include diff --git a/src/graph_stack.c b/src/graph_stack.c index c4d8856..e1179ad 100644 --- a/src/graph_stack.c +++ b/src/graph_stack.c @@ -1,26 +1,27 @@ -/* - * Gem-graph OpenGL experiments +/** + * @file + * Phantom docs (TODO) * - * Desc: GL functions + * This file is part of Gem-graph. * - * Copyright (C) 2023 Arthur Menges - * Copyright (C) 2023 Adrien Bourmault - * Copyright (C) 2023 Jean Sirmai + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai * - * 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 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. * - * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * @endcond */ #include diff --git a/src/grid.c b/src/grid.c index caad946..75df83b 100644 --- a/src/grid.c +++ b/src/grid.c @@ -1,25 +1,27 @@ -/* - * Gem-graph +/** + * @file + * Phantom docs (TODO) * - * Desc: OpenGL grid functions + * This file is part of Gem-graph. * - * Copyright (C) 2023 Jean Sirmai - * Copyright (C) 2023 Adrien Bourmault + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai * - * 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 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. * - * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * @endcond */ #include diff --git a/src/init.c b/src/init.c index fd5abbe..e993921 100644 --- a/src/init.c +++ b/src/init.c @@ -1,25 +1,27 @@ -/* - * Gem-graph OpenGL experiments +/** + * @file + * Phantom docs (TODO) * - * Desc: GL functions + * This file is part of Gem-graph. * - * Copyright (C) 2023 Arthur Menges - * Copyright (C) 2023 Adrien Bourmault + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai * - * 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 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. * - * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * @endcond */ /* -------------------------------------------------------------------------- */ diff --git a/src/main.c b/src/main.c index 2502cbb..057d038 100644 --- a/src/main.c +++ b/src/main.c @@ -1,11 +1,28 @@ -/******************************************************************************/ -/* */ -/* E coli by David S. Goodsell (2009) */ -/* --- */ -/* Let this freeze frame guide us towards the model */ -/* that alone can account for the phenomenon ! */ -/* */ -/******************************************************************************/ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ #include "../include/callback.h" diff --git a/src/parsing.c b/src/parsing.c index 32e7baf..99fc764 100644 --- a/src/parsing.c +++ b/src/parsing.c @@ -1,25 +1,27 @@ -/* - * Gem-graph client +/** + * @file + * Phantom docs (TODO) * - * Desc: Model parsing functions + * This file is part of Gem-graph. * - * Copyright (C) 2023 Jean Sirmai - * Copyright (C) 2024 Adrien Bourmault + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai * - * 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 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. * - * 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 . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * @endcond */ #include diff --git a/src/shader.frag b/src/shader.frag index fb8a76c..abb6be5 100644 --- a/src/shader.frag +++ b/src/shader.frag @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #version 330 core in vec4 color; @@ -6,4 +32,4 @@ out vec4 out_frag_color; void main(void) { out_frag_color = color; -} \ No newline at end of file +} diff --git a/src/shader.vert b/src/shader.vert index 09e953c..a9cbd3b 100644 --- a/src/shader.vert +++ b/src/shader.vert @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #version 330 core uniform mat4 projection_matrix; @@ -17,4 +43,4 @@ void main(void) color = vec4 (chrominance * in_color.rgb, luminance); } -// https://learnopengl.com/Getting-started/Shaders \ No newline at end of file +// https://learnopengl.com/Getting-started/Shaders diff --git a/src/texts.c b/src/texts.c index f14fdf9..417dfac 100644 --- a/src/texts.c +++ b/src/texts.c @@ -1,11 +1,28 @@ -/******************************************************************************/ -/* */ -/* E coli by David S. Goodsell (2009) */ -/* --- */ -/* Let this freeze frame guide us towards the model */ -/* that alone can account for the phenomenon ! */ -/* */ -/******************************************************************************/ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ char *get_space_run_edit_specif(){ return "\n\ >>> Dans : [space_page - mode RUN] doivent être : ------------------------------------------------------\n\n\ diff --git a/src/tree.c b/src/tree.c index 943e6c2..3e244d9 100644 --- a/src/tree.c +++ b/src/tree.c @@ -1,3 +1,29 @@ +/** + * @file + * Phantom docs (TODO) + * + * This file is part of Gem-graph. + * + * @cond LICENSE + * Copyright © 2021 Libre en Communs + * Copyright © 2021-2024 Adrien Bourmault + * Copyright © 2021-2024 Jean Sirmai + * + * 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 . + * @endcond + */ + #include #include