aboutsummaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-13 13:05:33 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-13 13:05:33 +0200
commit0267b512527b85af6cd815bb9215bd659b75931e (patch)
tree3f798f9e4b89f84d5e11ae820329e15f3c1e351d /src/parse.c
parent5635d61927b2fc864d92f9f7b40cdb164eeab275 (diff)
downloadscop-0267b512527b85af6cd815bb9215bd659b75931e.tar.gz
scop-0267b512527b85af6cd815bb9215bd659b75931e.tar.bz2
scop-0267b512527b85af6cd815bb9215bd659b75931e.zip
Added basic color
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse.c b/src/parse.c
index ca3747c..c0952c0 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/05/09 11:02:00 by charles #+# #+# */
-/* Updated: 2020/05/13 10:15:43 by charles ### ########.fr */
+/* Updated: 2020/05/13 12:25:46 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -155,8 +155,8 @@ int parse(char *filepath, t_object *object)
ft_veciter_ret(indices, st_iter_func_decrement_uint);
object->vertices = (float*)ft_vectobuf32(vertices);
object->indices = (unsigned int*)ft_vectobuf32(indices);
- object->vertices_len = vertices->size;
- object->indices_len = indices->size;
+ object->vertices_len = vertices->size / 4;
+ object->indices_len = indices->size / 3;
ft_vecdestroy(vertices, NULL);
ft_vecdestroy(indices, NULL);
return (0);