From 723c4602c6ec9b74e841501754e651ef359f6385 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 12 May 2020 19:11:40 +0200 Subject: Added perspective matrix --- inc/scop.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'inc') diff --git a/inc/scop.h b/inc/scop.h index ef5a8b3..2d8583a 100644 --- a/inc/scop.h +++ b/inc/scop.h @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/09 10:41:44 by charles #+# #+# */ -/* Updated: 2020/05/12 13:39:34 by charles ### ########.fr */ +/* Updated: 2020/05/12 16:28:57 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -40,7 +40,9 @@ typedef struct unsigned int index_buf; unsigned int vertex_array; unsigned int shader; - int mvp_location; + int model_location; + int view_location; + int proj_location; } t_gl_state; /* @@ -55,7 +57,7 @@ int parse(char *filepath, t_object *object); int gl_state_init(t_gl_state *state, t_object *object); void gl_state_quit(t_gl_state *state, t_object *object); -void gl_state_set_mvp(t_gl_state *state, t_ftmmat4 *mvp); +void gl_state_set_mvp(t_gl_state *state, t_ftmmat4 *model, t_ftmmat4 *view, t_ftmmat4 *proj); /* ** error.c -- cgit