diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-12 19:11:40 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-12 19:11:40 +0200 |
| commit | 723c4602c6ec9b74e841501754e651ef359f6385 (patch) | |
| tree | d6dd27c251871fb61e3fc99fe7a0a96438096f1d /inc/scop.h | |
| parent | 7b214503608550dc2853b9e01526723f8c65baf3 (diff) | |
| download | scop-723c4602c6ec9b74e841501754e651ef359f6385.tar.gz scop-723c4602c6ec9b74e841501754e651ef359f6385.tar.bz2 scop-723c4602c6ec9b74e841501754e651ef359f6385.zip | |
Added perspective matrix
Diffstat (limited to 'inc/scop.h')
| -rw-r--r-- | inc/scop.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |
