-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
32 lines (25 loc) · 850 Bytes
/
main.cpp
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
#include <cstdlib>
#include "argh/argh.h"
#include "includes/globals.hpp"
#include "includes/visualizer.hpp"
#include "tests/tests.hpp"
int main(int argc, char *argv[]){
srand(time(NULL)); //semilla pal random
argh::parser cmdl(argv);
if (cmdl[{"-t", "--test"}]){
test();
is_test = true;
}
//cargar las texturas
if (!blue_circle.loadFromFile("Assets/blue-circle.png") || !red_circle.loadFromFile("Assets/red-circle.png")){
std::cout << "Error con textura" << std::endl;
return 0; // si falla al cargar las texturas, termina la ejecucion
}
if (!font.loadFromFile("Assets/Caskaydia Cove Nerd Font Complete.ttf")){
std::cout << "Error al cargar la fuente" << std::endl;
return 0;
}
//llamamos al visualizador
visualizer();
return 0;
}