20namespace visualization {
30class EGLOffscreenContext {
34 static std::unique_ptr<EGLOffscreenContext> Create(
int width,
int height);
36 ~EGLOffscreenContext();
37 EGLOffscreenContext(
const EGLOffscreenContext &) =
delete;
38 EGLOffscreenContext &operator=(
const EGLOffscreenContext &) =
delete;
44 void ReleaseCurrent();
54 int GetWidth()
const {
return width_; }
55 int GetHeight()
const {
return height_; }
58 EGLOffscreenContext() =
default;
61 EGLDisplay display_ = EGL_NO_DISPLAY;
62 EGLContext context_ = EGL_NO_CONTEXT;
63 EGLSurface surface_ = EGL_NO_SURFACE;
Definition PinholeCameraIntrinsic.cpp:16