mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-23 17:33:55 +08:00
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20d
22 lines
361 B
C++
22 lines
361 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
|
|
#ifdef __APPLE__
|
|
#include <OpenGL/gl3.h>
|
|
#else
|
|
#include <GLES3/gl3.h>
|
|
#endif
|
|
|
|
class GLShader {
|
|
public:
|
|
GLShader(const char *vert_src, const char *frag_src);
|
|
~GLShader();
|
|
GLuint getUniformLocation(const char * name);
|
|
GLuint prog = 0;
|
|
|
|
private:
|
|
GLuint vert = 0, frag = 0;
|
|
std::map<const char*, GLint> uniform_loc_map;
|
|
};
|