Commit Graph

12 Commits

Author SHA1 Message Date
Jean Sirmai db1c2a091c
OK : create_arrow() creating in arrows_ptr and drawing 2023-10-24 23:29:12 +02:00
Jean Sirmai 0587219bd3
Fixed segfault/abort/double free with realloc in *_arrow() 2023-10-04 18:43:51 +02:00
Adrien Bourmault 234d78542f
src/graphics/graphics.c: corrected segfault caused by incorrect size for elements 2023-09-07 22:49:09 +02:00
Adrien Bourmault 8130b663d8
src/graphics/*: full refactoring of source code
src/graphics.c : contains all primitives on buffers and control
src/arrows.c : contains all complex writing for arrows constructions
src/grid.c : contains all complexe writing for grid construction

Co-developed-by: Jean Sirmai <jean@a-lec.org>
Signed-off-by: Adrien Bourmault <neox@a-lec.org>
2023-09-07 22:47:58 +02:00
Jean Sirmai 7f010b87c7
src/graphics/*: Reworked modularity, buffer allocation and reallocation of lines buffer
Acked-by: Adrien 'neox' Bourmault <neox@a-lec.org>
2023-09-06 15:05:21 +02:00
Jean Sirmai f32fa02299
First one-dimensional representation
Users have choice for display:
- arrows are 2D or 3D
- space units are 2D or 3D

Signed-off-by: Jean Sirmai <jean@a-lec.org>
2023-08-29 14:32:39 +02:00
Jean Sirmai a0cce217b2
WIP: Réorganisation de graphics.c création de space_2D.c et arrow_2D.c 2023-06-15 19:50:49 +02:00
Jean Sirmai 1c5f45d505
Is OK. Avant restructuration. (découpage de graphics.c en "control_graphics.c" + space_2D.c + _3D.c + etc) 2023-06-15 11:40:55 +02:00
Adrien Bourmault abea32cd88
WIP: gl_area params allocated 2023-02-26 14:57:50 +01:00
Adrien Bourmault d761711ede
WIP: allocation dynamique des paramètres de GLArea 2023-02-23 19:51:02 +01:00
Adrien Bourmault 91026f87be
Changed function naming style 2023-01-25 19:27:51 +01:00
Adrien Bourmault dce3310970
WIP: C transition, beginning from gemgl 2023-01-23 18:52:57 +01:00