Interface to an output framebuffer.
More...
#include <display_buffer.h>
virtual mir::graphics::DisplayBuffer::~DisplayBuffer |
( |
| ) |
|
|
virtualdefault |
mir::graphics::DisplayBuffer::DisplayBuffer |
( |
| ) |
|
|
protecteddefault |
mir::graphics::DisplayBuffer::DisplayBuffer |
( |
DisplayBuffer const & |
c | ) |
|
|
protecteddelete |
virtual MirMirrorMode mir::graphics::DisplayBuffer::mirror_mode |
( |
| ) |
const |
|
pure virtual |
Returns the mirror mode of the display buffer relative to orientation.
If your DisplayBuffer can do the mirroring itself then this will always return mir_mirror_mode_none. If the DisplayBuffer does not implement the mirroring itself then this function will return the mirror mode the renderer must do after rotation to make things "look right".
Returns a pointer to the native display buffer object backing this display buffer.
The pointer to the native display buffer remains valid as long as the display buffer object is valid.
virtual MirOrientation mir::graphics::DisplayBuffer::orientation |
( |
| ) |
const |
|
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".
virtual bool mir::graphics::DisplayBuffer::overlay |
( |
RenderableList const & |
renderlist | ) |
|
|
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.
- Parameters
-
[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 render using a graphics library like OpenGL. |
- Returns
- True if the hardware can (and has) fully composite/overlay the list; False if the hardware platform cannot composite the list, and the caller should then render the list another way using a graphics library such as OpenGL.
The documentation for this class was generated from the following file:
Copyright © 2012-2016 Canonical Ltd.
Generated on Fri Dec 20 06:52:43 UTC 2019