-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructure.h
More file actions
71 lines (61 loc) · 1.63 KB
/
structure.h
File metadata and controls
71 lines (61 loc) · 1.63 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* structure.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yuikim <yuikim@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/02 13:40:45 by yuikim #+# #+# */
/* Updated: 2023/09/02 13:43:16 by yuikim ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef STRUCTURE_H
# define STRUCTURE_H
# include "utils/ray.h"
typedef struct s_ambient
{
double ratio;
t_color color;
}t_ambient;
typedef struct s_camera
{
t_vector position;
t_vector dv;
double fov;
}t_camera;
typedef struct s_light
{
t_vector position;
double ratio;
t_color color;
} t_light;
typedef struct s_sphere
{
t_vector center;
double radius;
t_color color;
} t_sphere;
typedef struct s_plane
{
t_vector point;
t_vector dv;
t_color color;
} t_plane;
typedef struct s_cylinder{
t_vector center;
t_vector dv;
double radius;
double height;
t_color color;
t_vector top;
t_vector bottom;
} t_cylinder;
typedef struct s_scene{
t_ambient *a;
t_camera *c;
t_light *l;
t_sphere *sp;
t_plane *pl;
t_cylinder *cl;
} t_scene;
#endif