#include <display_buffer.h>
mir::graphics::nested::detail::DisplayBuffer::~DisplayBuffer |
( |
| ) |
|
|
virtualnoexcept |
mir::graphics::nested::detail::DisplayBuffer::DisplayBuffer |
( |
DisplayBuffer const & |
| ) |
|
|
delete |
void mir::graphics::nested::detail::DisplayBuffer::make_current |
( |
| ) |
|
|
overridevirtual |
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.
Implements mir::graphics::DisplayBuffer.
MirOrientation mir::graphics::nested::detail::DisplayBuffer::orientation |
( |
| ) |
const |
|
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.
bool mir::graphics::nested::detail::DisplayBuffer::post_renderables_if_optimizable |
( |
RenderableList const & |
renderlist | ) |
|
|
overridevirtual |
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 draw using OpenGL and use post_update() |
- Returns
- true if the hardware can optimize the rendering of the list. When this call completes, the renderlist will have been posted to the screen. false if the hardware platform cannot optimize the list. The screen will not be updated. The caller should render the list another way, and post using post_update()
Implements mir::graphics::DisplayBuffer.
void mir::graphics::nested::detail::DisplayBuffer::release_current |
( |
| ) |
|
|
overridevirtual |
void mir::graphics::nested::detail::DisplayBuffer::swap_buffers |
( |
| ) |
|
|
overridevirtual |
Swap buffers for OpenGL rendering.
After this method returns is the earliest time that it is safe to free GL-related resources such as textures and buffers.
Implements mir::renderer::gl::RenderTarget.
The documentation for this class was generated from the following file:
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015