-
Notifications
You must be signed in to change notification settings - Fork 0
/
help
executable file
·64 lines (47 loc) · 2.1 KB
/
help
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
Autor: Mateusz Pitura
Projekt: Zaliczenie przedmiotu Jezyk C 2016/2017
<help>
Program do wizualizacji mapy bitowej w przestrzeni trojwymiarowej
(jako mapa wysokosci 0...255.0)
-> Wczytuje mape wysokosci (skale szarosci) jako wysokosci do tablicy wierzcholkow,
nastepnie tworzy polaczenia pomiedzy nimi, by stworzyc trojkaty a nastepnie wizualizuje w 3D przestrzeni
Program wykorzystuje:
-Bilbioteki allegro5, allegro5_image (Wersja stable: 5.0)
https://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Linux/Debian
Dodatkowe Pakiety:
apt-get install freeglut3-dev glew-utils libglew1.6-dev libfreeimage-dev
apt-get install libgl1-mesa-dev
Kompilacja:
make
-> w makefile jest sciezka dojscia do allegro w /usr/lib/ i /usr/lib/i386-linux-gnu (tam znajduja sie owe pliki)
w przypadku braku plikow kompilacja bedzie niemozliwa a co za tym idzie trzeba recznie sprawdzic lokalizacje
(powinna byc jednak prawidlowa - kompilacja na debian)
Argumenty wywolania:
-h [--help]
wyswietla pomoc do aplikacji (ktora wlasnie jest wyswietlana)
-n [--new_configuration]
tworzy nowa konfiguracje (odpytuje uzytkownika
kolejno o: plik, szerokosc, wysokosc (jesli 0 to taka jak wartosci obrazu), skale,
wysokosc, szerokosc, tytuł okna, kolor glebi, czy ma renderowac w trybie wireframe czy solid))
-c [--config] nazwa_pliku.cfg
podaje nazwe pliku z konfiguracja (jezeli nie ma domyslny plik to config.cfg)
-f [--file] nazwa_mapy.rozszerzenie
podaje nowa nazwe pliku (bez tego parametru wartosc jest odczytywana z
pliku config.cfg - w przypadku podania nowej wartosc stara wartosc w config.cfg
zostaje nadpisana)
-ww [--window_width] value
Szerokosc okna
w przypadku 0 wartosc domyslna (800)
-wh [--window_height] value
Wysokosc okna
w przypadku 0 wartosc domyslna (600)
-gs [--grid_scale] value
skala terenu (odleglosc pomiedzy wierzcholkami)
domyslnie 5.0
--wireframe
rysuje mape wysokosci w trybie siatki
--solid
standardowe rysowanie mapy wysokosci
-clear [--clear_color] 255 255 255
Defniuje kolor czyszczenia podany jako r g b (czerwony zielony niebieski) odpowiedni w przedziale <0; 255>
w przypadku 0 wartosc domyslna (0,0,0) - czarny kolor