-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprojection.c
50 lines (44 loc) · 1.36 KB
/
projection.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* projection.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: juschaef <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/12/05 17:08:11 by juschaef #+# #+# */
/* Updated: 2014/12/10 11:38:41 by juschaef ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void para_projection(t_win *win)
{
win->opt = PARA;
erase(win);
}
void iso_projection(t_win *win)
{
win->opt = ISO;
erase(win);
}
void draw_method(t_win *win)
{
win->draw_type = DRAW;
erase(win);
}
void put_method(t_win *win)
{
win->draw_type = PUT;
erase(win);
}
void vanilla_mode(t_win *win)
{
win->pad = 15;
win->opt = ISO;
win->pad_h = 5;
win->move_lr = 1;
win->move_ud = 1;
win->draw_type = PUT;
win->angle = 0;
win->legend_display = ON;
erase(win);
}