mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-18 22:13:51 +08:00
version: lp-dp v0.9.2 for EON/C2 date: 2023-05-09T02:32:30 commit: cb8adff9d368de2e442e1e7f4309b70a4a2013ad
23 lines
373 B
C++
23 lines
373 B
C++
#pragma once
|
|
|
|
#include "cereal/visionipc/visionbuf.h"
|
|
|
|
#ifdef QCOM
|
|
#include <GLES3/gl3.h>
|
|
|
|
#include <EGL/egl.h>
|
|
#define EGL_EGLEXT_PROTOTYPES
|
|
#include <EGL/eglext.h>
|
|
#undef Status
|
|
|
|
class EGLImageTexture {
|
|
public:
|
|
EGLImageTexture(const VisionBuf *buf);
|
|
~EGLImageTexture();
|
|
GLuint frame_tex = 0;
|
|
|
|
void *private_handle = nullptr;
|
|
EGLImageKHR img_khr = 0;
|
|
};
|
|
#endif
|