summaryrefslogtreecommitdiff
path: root/src/utils.h
blob: 586e152b6fd94154f6e3045da1e3152975fd2804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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