2020-01-17 12:01:02 -07:00
|
|
|
#ifndef COMMON_GLUTIL_H
|
|
|
|
#define COMMON_GLUTIL_H
|
|
|
|
|
2020-02-02 00:36:50 -07:00
|
|
|
#ifdef __APPLE__
|
|
|
|
#include <OpenGL/gl3.h>
|
|
|
|
#else
|
|
|
|
#include <GLES3/gl3.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-01-17 12:01:02 -07:00
|
|
|
GLuint load_shader(GLenum shaderType, const char *src);
|
|
|
|
GLuint load_program(const char *vert_src, const char *frag_src);
|
|
|
|
|
2020-02-02 00:36:50 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-01-17 12:01:02 -07:00
|
|
|
#endif
|