diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h new file mode 100644 index 0000000..586e152 --- /dev/null +++ b/src/utils.h @@ -0,0 +1,13 @@ +#ifndef UTILS_H_INCLUDED +#define UTILS_H_INCLUDED + +#include "main.h" + +typedef float t_mat4x4[16]; +void gl_mat4x4_ortho(t_mat4x4 out, float left, float right, float bottom, float top, float znear, float zfar); + +const GLchar* gl_shaderfile_read(const char* path, Sint64 *out_fsize); +void gl_trace_shader_or_program_log(GLuint object); +GLint gl_compile_shader_from_file(GLuint shader, const char* path); + +#endif |