Mir
|
#include <nested_output.h>
Public Member Functions | |
NestedOutput (EGLDisplayHandle const &egl_display, MirSurface *mir_surface, geometry::Rectangle const &area, std::shared_ptr< input::EventFilter > const &event_handler, MirPixelFormat preferred_format) | |
~NestedOutput () noexcept | |
geometry::Rectangle | view_area () const override |
The area the DisplayBuffer occupies in the virtual screen space. More... | |
void | make_current () override |
Makes the DisplayBuffer the current GL rendering target. More... | |
void | release_current () override |
Releases the current GL rendering target. More... | |
void | post_update () override |
This will trigger OpenGL rendering and post the result to the screen. More... | |
virtual bool | can_bypass () const override |
to be deprecated More... | |
MirOrientation | orientation () const override |
Returns the orientation of the display buffer relative to how the user should see it (the orientation of the output). More... | |
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. More... | |
NestedOutput (NestedOutput const &)=delete | |
NestedOutput | operator= (NestedOutput const &)=delete |
![]() | |
virtual | ~DisplayBuffer () |
virtual void | post_update (std::shared_ptr< Buffer >) |
Additional Inherited Members | |
![]() | |
DisplayBuffer ()=default | |
DisplayBuffer (DisplayBuffer const &c)=delete | |
DisplayBuffer & | operator= (DisplayBuffer const &c)=delete |
mir::graphics::nested::detail::NestedOutput::NestedOutput | ( | EGLDisplayHandle const & | egl_display, |
MirSurface * | mir_surface, | ||
geometry::Rectangle const & | area, | ||
std::shared_ptr< input::EventFilter > const & | event_handler, | ||
MirPixelFormat | preferred_format | ||
) |
|
noexcept |
|
delete |
|
overridevirtual |
to be deprecated
Implements mir::graphics::DisplayBuffer.
|
overridevirtual |
Makes the DisplayBuffer the current GL rendering target.
Implements mir::graphics::DisplayBuffer.
|
delete |
|
overridevirtual |
Returns the orientation of the display buffer relative to how the user should see it (the orientation of the output).
This tells us how much (if any) rotation the renderer needs to do. If your DisplayBuffer can do the rotation itself then this will always return mir_orientation_normal. If the DisplayBuffer does not implement the rotation itself then this function will return the amount of rotation the renderer must do to make things "look right".
Implements mir::graphics::DisplayBuffer.
|
overridevirtual |
This will trigger OpenGL rendering and post the result to the screen.
Implements mir::graphics::DisplayBuffer.
|
overridevirtual |
Releases the current GL rendering target.
Implements mir::graphics::DisplayBuffer.
|
virtual |
This will render renderlist to the screen and post the result to the screen.
For each renderable, the DisplayBuffer will decide if its more efficient to render that Renderable via OpenGL, or via another method. If the Renderable is to be rendered via OpenGL, render_fn will be invoked on that Renderable.
Implements mir::graphics::DisplayBuffer.
|
overridevirtual |
The area the DisplayBuffer occupies in the virtual screen space.
Implements mir::graphics::DisplayBuffer.
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014