17 #ifndef UNITYSYSTEMCOMPOSITOR_MIREGL_H 18 #define UNITYSYSTEMCOMPOSITOR_MIREGL_H 38 std::shared_ptr<MirEglApp>
const& mir_egl_app,
44 template<
typename Pa
inter>
45 void paint(Painter
const& functor)
48 functor(width(), height());
53 void egl_make_current();
56 unsigned int width()
const;
57 unsigned int height()
const;
59 std::shared_ptr<MirEglApp>
const mir_egl_app;
62 EGLSurface eglsurface;
67 #endif //UNITYSYSTEMCOMPOSITOR_MIREGL_H
MirEglSurface(std::shared_ptr< MirEglApp > const &mir_egl_app, char const *name, MirOutput const *output)
Definition: miregl.cpp:64
MirPixelFormat pixel_format
Definition: client_types.h:180
Handle class for MirWindow - provides automatic reference counting.
Definition: window.h:31
std::shared_ptr< MirEglApp > make_mir_eglapp(MirConnection *const connection, MirPixelFormat const &pixel_format)
Definition: miregl.cpp:58
char const * name
Definition: client_types.h:177
Handle class for MirRenderSurface - provides automatic reference counting.
Definition: surface.h:31
~MirEglSurface()
Definition: miregl.cpp:92
void paint(Painter const &functor)
Definition: miregl.h:45