aboutsummaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-12 14:14:06 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-12 14:14:06 +0200
commit7b214503608550dc2853b9e01526723f8c65baf3 (patch)
treeddbc37eb2627b43eb33774bd2bf205336cd1a9e6 /inc
parentd07d87964f13d3c1e6ad8c2f6d7db21101f1ef34 (diff)
downloadscop-7b214503608550dc2853b9e01526723f8c65baf3.tar.gz
scop-7b214503608550dc2853b9e01526723f8c65baf3.tar.bz2
scop-7b214503608550dc2853b9e01526723f8c65baf3.zip
Added mat4 in libftm, can rotate, scale and translate vector
Diffstat (limited to 'inc')
-rw-r--r--inc/scop.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/inc/scop.h b/inc/scop.h
index 3c16af8..ef5a8b3 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/11 10:33:29 by charles ### ########.fr */
+/* Updated: 2020/05/12 13:39:34 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,8 +19,12 @@
# include <stdlib.h>
# include <GL/glew.h>
# include <GLFW/glfw3.h>
+
# include "libft.h"
# include "libft_vec.h"
+# include "libftm.h"
+# include "libftm_mat4.h"
+# include "libftm_vec3.h"
typedef struct
{
@@ -36,6 +40,7 @@ typedef struct
unsigned int index_buf;
unsigned int vertex_array;
unsigned int shader;
+ int mvp_location;
} t_gl_state;
/*
@@ -50,6 +55,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);
/*
** error.c
@@ -74,4 +80,14 @@ GLFWwindow *glfw_init(int width, int height);
unsigned int shader_new(void);
+/*
+** texture.c
+*/
+
+/*
+** helper.c
+*/
+
+bool has_extension(char *filepath, char *extension);
+
#endif