19 #ifndef MIR_GRAPHICS_OFFSCREEN_DISPLAY_BUFFER_H_
20 #define MIR_GRAPHICS_OFFSCREEN_DISPLAY_BUFFER_H_
52 unsigned int color_renderbuffer;
53 unsigned int depth_renderbuffer;
75 std::function<
void(
Renderable const&)>
const& render_fn);
Interface to an output framebuffer.
Definition: display_buffer.h:39
GLFramebufferObject(geometry::Size const &size)
Definition: surfaceless_egl_context.h:32
Definition: display_buffer.h:40
bool can_bypass() const
to be deprecated
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88
Definition: renderable.h:33
Definition: display_buffer.h:59
void make_current()
Makes the DisplayBuffer the current GL rendering target.
void render_and_post_update(RenderableList const &renderlist, std::function< void(Renderable const &)> const &render_fn)
This will render renderlist to the screen and post the result to the screen.
geometry::Rectangle view_area() const
The area the DisplayBuffer occupies in the virtual screen space.
Definition: rectangle.h:33
void post_update()
This will trigger OpenGL rendering and post the result to the screen.
void release_current()
Releases the current GL rendering target.
MirOrientation orientation() const override
Returns the orientation of the display buffer relative to how the user should see it (the orientation...