Mercurial > public > algo-animator
comparison README.md @ 28:99592fae8ea1
add instructions
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 28 Jun 2023 08:59:28 +0100 |
parents | 2945f5898960 |
children | 61104b22a25d |
comparison
equal
deleted
inserted
replaced
27:30b6812fefdd | 28:99592fae8ea1 |
---|---|
6  | 6  |
7 | 7 |
8 ## Compile | 8 ## Compile |
9 | 9 |
10 ```bash | 10 ```bash |
11 gcc main.c -lglut -lGL -lGLU -lm -I/usr/local/include/freetype2 -L/usr/local/lib -lfreetype | 11 mkdir build |
12 cd build | |
13 cmake .. | |
14 make | |
15 ./algo_animator | |
12 ``` | 16 ``` |
17 | |
13 | 18 |
14 ## To improve | 19 ## To improve |
15 | 20 |
16 Since `GLUT` is single-thread, I cannot call `glutPostRedisplay()` within `while` or `for loops` to redraw the screen in every | 21 Since `GLUT` is single-thread, I cannot call `glutPostRedisplay()` within `while` or `for loops` to redraw the screen in every |
17 step of the selected sorting algorithm. I guess the solution is multi-threading, so I can perform the sorting in the second thread | 22 step of the selected sorting algorithm. I guess the solution is multi-threading, so I can perform the sorting in the second thread |