-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_object.c
18 lines (16 loc) · 1.02 KB
/
add_object.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* add_object.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cyildiri <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/26 15:41:48 by cyildiri #+# #+# */
/* Updated: 2016/11/26 15:41:49 by cyildiri ### ########.fr */
/* */
/* ************************************************************************** */
#include "libgraphics.h"
void add_object(t_scene *scene, t_3d_object *obj)
{
ft_lstadd(&(scene->objects), ft_lstnew(obj, sizeof(t_3d_object)));
}