Mir
|
Interface to an output framebuffer. More...
#include <display_buffer.h>
Public Member Functions | |
virtual | ~DisplayBuffer () |
virtual geometry::Rectangle | view_area () const =0 |
The area the DisplayBuffer occupies in the virtual screen space. More... | |
virtual void | make_current ()=0 |
Makes the DisplayBuffer the current GL rendering target. More... | |
virtual void | release_current ()=0 |
Releases the current GL rendering target. More... | |
virtual void | post_update ()=0 |
This will trigger OpenGL rendering and post the result to the screen. More... | |
virtual bool | post_renderables_if_optimizable (RenderableList const &renderlist)=0 |
This will render renderlist to the screen and post the result to the screen if there is a hardware optimization that can be done. More... | |
virtual MirOrientation | orientation () const =0 |
Returns the orientation of the display buffer relative to how the user should see it (the orientation of the output). More... | |
virtual bool | uses_alpha () const =0 |
Returns true if the display buffer has an alpha channel and the alpha channel will be read from at some point - in which case the renderer must produce valid alpha channel content. More... | |
Protected Member Functions | |
DisplayBuffer ()=default | |
DisplayBuffer (DisplayBuffer const &c)=delete | |
DisplayBuffer & | operator= (DisplayBuffer const &c)=delete |
Interface to an output framebuffer.
|
inlinevirtual |
Reimplemented in mir::graphics::mesa::DisplayBuffer.
|
protecteddefault |
|
protecteddelete |
|
pure virtual |
Makes the DisplayBuffer the current GL rendering target.
Implemented in mir::graphics::offscreen::DisplayBuffer, mir::graphics::mesa::DisplayBuffer, mir::compositor::ScreencastDisplayBuffer, mir::graphics::android::DisplayBuffer, and mir::graphics::nested::detail::NestedOutput.
|
protecteddelete |
|
pure virtual |
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".
Implemented in mir::graphics::offscreen::DisplayBuffer, mir::compositor::ScreencastDisplayBuffer, mir::graphics::mesa::DisplayBuffer, mir::graphics::android::DisplayBuffer, and mir::graphics::nested::detail::NestedOutput.
|
pure virtual |
This will render renderlist to the screen and post the result to the screen if there is a hardware optimization that can be done.
[in] | renderlist | The renderables that should appear on the screen if the hardware is capable of optmizing that list somehow. If what you want displayed on the screen cannot be represented by a RenderableList, then you should draw using OpenGL and use post_update() |
Implemented in mir::graphics::offscreen::DisplayBuffer, mir::compositor::ScreencastDisplayBuffer, mir::graphics::mesa::DisplayBuffer, mir::graphics::android::DisplayBuffer, and mir::graphics::nested::detail::NestedOutput.
|
pure virtual |
This will trigger OpenGL rendering and post the result to the screen.
Implemented in mir::graphics::offscreen::DisplayBuffer, mir::compositor::ScreencastDisplayBuffer, mir::graphics::mesa::DisplayBuffer, mir::graphics::android::DisplayBuffer, and mir::graphics::nested::detail::NestedOutput.
|
pure virtual |
Releases the current GL rendering target.
Implemented in mir::graphics::offscreen::DisplayBuffer, mir::compositor::ScreencastDisplayBuffer, mir::graphics::mesa::DisplayBuffer, mir::graphics::android::DisplayBuffer, and mir::graphics::nested::detail::NestedOutput.
|
pure virtual |
Returns true if the display buffer has an alpha channel and the alpha channel will be read from at some point - in which case the renderer must produce valid alpha channel content.
Implemented in mir::graphics::offscreen::DisplayBuffer, mir::compositor::ScreencastDisplayBuffer, mir::graphics::mesa::DisplayBuffer, mir::graphics::android::DisplayBuffer, and mir::graphics::nested::detail::NestedOutput.
|
pure virtual |
The area the DisplayBuffer occupies in the virtual screen space.
Implemented in mir::graphics::offscreen::DisplayBuffer, mir::graphics::mesa::DisplayBuffer, mir::compositor::ScreencastDisplayBuffer, mir::graphics::android::DisplayBuffer, and mir::graphics::nested::detail::NestedOutput.
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014