mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-26 21:53:51 +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>
28 lines
428 B
C++
28 lines
428 B
C++
#pragma once
|
|
|
|
#include "visionbuf.h"
|
|
|
|
#ifdef __APPLE__
|
|
#include <OpenGL/gl3.h>
|
|
#else
|
|
#include <GLES3/gl3.h>
|
|
#endif
|
|
|
|
#ifdef QCOM
|
|
#include <EGL/egl.h>
|
|
#define EGL_EGLEXT_PROTOTYPES
|
|
#include <EGL/eglext.h>
|
|
#undef Status
|
|
#endif
|
|
|
|
class EGLImageTexture {
|
|
public:
|
|
EGLImageTexture(const VisionBuf *buf);
|
|
~EGLImageTexture();
|
|
GLuint frame_tex = 0;
|
|
#ifdef QCOM
|
|
void *private_handle = nullptr;
|
|
EGLImageKHR img_khr = 0;
|
|
#endif
|
|
};
|