2021-04-15 15:14:20 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-04-09 14:57:14 +02:00
|
|
|
#include <GLES2/gl2.h>
|
2021-04-15 15:14:20 +02:00
|
|
|
#include <stddef.h>
|
2021-04-09 14:57:14 +02:00
|
|
|
|
|
|
|
#define check_gl() __check_gl(__FILE__, __LINE__)
|
2021-04-15 15:14:20 +02:00
|
|
|
void __check_gl(const char *file, int line);
|
2021-04-09 14:57:14 +02:00
|
|
|
|
2021-04-15 15:14:20 +02:00
|
|
|
extern const GLfloat gl_quad_vertices[8];
|
|
|
|
extern const GLfloat gl_quad_texcoords[8];
|
2021-04-09 14:57:14 +02:00
|
|
|
|
2021-04-15 15:14:20 +02:00
|
|
|
GLuint gl_load_shader(const char *path, GLenum type);
|
|
|
|
GLuint gl_link_program(GLuint *shaders, size_t num_shaders);
|