-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_key_handle2.c
More file actions
73 lines (68 loc) · 1.79 KB
/
ft_key_handle2.c
File metadata and controls
73 lines (68 loc) · 1.79 KB
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
69
70
71
72
73
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_key_handle2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bparker <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/18 17:43:34 by bparker #+# #+# */
/* Updated: 2019/01/18 18:15:31 by bparker ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void key_parralel(t_trnsfrm *t)
{
t->rot.x = 0;
t->rot.y = 0;
t->rot.z = 0;
t->scale.x = 30.0;
t->scale.y = 30.0;
t->scale.z = 6.0;
t->persp = 0;
t->b = 1;
t->mov_wrld.x = 0;
t->mov_wrld.y = 0;
t->mov_wrld.z = 0;
}
void key_isometric(t_trnsfrm *t)
{
t->rot.x = 55;
t->rot.y = 0;
t->rot.z = 45;
t->scale.x = 30.0;
t->scale.y = 30.0;
t->scale.z = 6.0;
t->persp = 0;
t->b = 1;
t->mov_wrld.x = 0;
t->mov_wrld.y = 0;
t->mov_wrld.z = 0;
}
void key_isometric_1(t_trnsfrm *t)
{
t->rot.x = 90;
t->rot.y = 0;
t->rot.z = 0;
t->scale.x = 30.0;
t->scale.y = 30.0;
t->scale.z = 6.0;
t->persp = 0;
t->b = 1;
t->mov_wrld.x = 0;
t->mov_wrld.y = 0;
t->mov_wrld.z = 0;
}
void key_isometric_2(t_trnsfrm *t)
{
t->rot.x = 90;
t->rot.y = 0;
t->rot.z = 90;
t->scale.x = 30.0;
t->scale.y = 30.0;
t->scale.z = 6.0;
t->persp = 0;
t->b = 1;
t->mov_wrld.x = 0;
t->mov_wrld.y = 0;
t->mov_wrld.z = 0;
}