-
Notifications
You must be signed in to change notification settings - Fork 0
/
point_map_add_point.c
22 lines (20 loc) · 1.11 KB
/
point_map_add_point.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* point_map_add_point.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cyildiri <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/04/19 19:52:50 by cyildiri #+# #+# */
/* Updated: 2017/04/20 17:36:47 by cyildiri ### ########.fr */
/* */
/* ************************************************************************** */
#include "libgraphics.h"
void point_map_add_point(t_3d_object *point_map, t_vec3fc point)
{
if (point_map->vertex_cnt < point_map->vertex_cnt_max)
{
point_map->vertices[point_map->vertex_cnt] = point;
(point_map->vertex_cnt)++;
}
}