Files
dragonpilot/selfdrive/common/glutil.h
George Hotz f72f78f2b9 Support scons build on Mac (#1034)
* fix clock and add Darwin sconstruct

* it builds, this changes should be simplifications too

* fix boardd build

* that's the real type of EGLClientBuffer

* remove extra lines

* ui needs opencl on phone
2020-02-01 23:36:50 -08:00

22 lines
329 B
C

#ifndef COMMON_GLUTIL_H
#define COMMON_GLUTIL_H
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#else
#include <GLES3/gl3.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
GLuint load_shader(GLenum shaderType, const char *src);
GLuint load_program(const char *vert_src, const char *frag_src);
#ifdef __cplusplus
}
#endif
#endif