/
sdl2Functions.hpp
68 lines (61 loc) · 1.68 KB
/
sdl2Functions.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <vector>
#include <SDL2/SDL.h>
// Draw states of current state of vector
//
// Visualization for state when all elements are sorted
void drawFinalState(
std::vector<int>& vector,
SDL_Renderer* renderer,
unsigned int windowWidth,
unsigned int windowHeight,
unsigned int color1,
char typeOfVisualization,
unsigned int speed = 10);
void drawBubbleSortState(
std::vector<int>& vector,
SDL_Renderer* renderer,
unsigned int windowWidth,
unsigned int windowHeight,
unsigned int color1,
unsigned int color2,
unsigned int color3,
unsigned int speed,
char typeOfVisualization);
void drawBucketSortState(
std::vector<int>& vector,
SDL_Renderer* renderer,
unsigned int windowWidth,
unsigned int windowHeight,
unsigned int color1,
unsigned int color2,
unsigned int color3,
unsigned int speed,
char typeOfVisualization);
void drawInsertionSortState(
std::vector<int>& vector,
SDL_Renderer* renderer,
unsigned int windowWidth,
unsigned int windowHeight,
unsigned int color1,
unsigned int color2,
unsigned int speed,
char typeOfVisualization);
void drawCountingSortState(
std::vector<int>& vector,
SDL_Renderer* renderer,
unsigned int windowWidth,
unsigned int windowHeight,
unsigned int color1,
unsigned int color2,
unsigned int speed,
char typeOfVisualization);
void drawSelectionSortState(
std::vector<int>& vector,
SDL_Renderer* renderer,
unsigned int windowWidth,
unsigned int windowHeight,
unsigned int color1,
unsigned int color2,
unsigned int color3,
unsigned int speed,
char typeOfVisualization);