aboutsummaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-12 19:11:40 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-12 19:11:40 +0200
commit723c4602c6ec9b74e841501754e651ef359f6385 (patch)
treed6dd27c251871fb61e3fc99fe7a0a96438096f1d /inc
parent7b214503608550dc2853b9e01526723f8c65baf3 (diff)
downloadscop-723c4602c6ec9b74e841501754e651ef359f6385.tar.gz
scop-723c4602c6ec9b74e841501754e651ef359f6385.tar.bz2
scop-723c4602c6ec9b74e841501754e651ef359f6385.zip
Added perspective matrix
Diffstat (limited to 'inc')
-rw-r--r--inc/scop.h8
1 files changed, 5 insertions, 3 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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