Mir
|
#include <display_buffer.h>
Public Member Functions | |
DisplayBuffer (geometry::Size const sz, EGLDisplay const d, EGLSurface const s, EGLContext const c, MirOrientation const o) | |
geometry::Rectangle | view_area () const override |
The area the DisplayBuffer occupies in the virtual screen space. More... | |
void | make_current () override |
Makes the the current GL render target. More... | |
void | release_current () override |
Releases the current GL render target. More... | |
void | swap_buffers () override |
Swap buffers for OpenGL rendering. More... | |
bool | post_renderables_if_optimizable (RenderableList const &renderlist) override |
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... | |
void | set_orientation (MirOrientation const new_orientation) |
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... | |
NativeDisplayBuffer * | native_display_buffer () override |
Returns a pointer to the native display buffer object backing this display buffer. More... | |
![]() | |
virtual | ~DisplayBuffer ()=default |
![]() | |
virtual | ~RenderTarget ()=default |
Additional Inherited Members | |
![]() | |
DisplayBuffer ()=default | |
DisplayBuffer (DisplayBuffer const &c)=delete | |
DisplayBuffer & | operator= (DisplayBuffer const &c)=delete |
![]() | |
NativeDisplayBuffer ()=default | |
virtual | ~NativeDisplayBuffer ()=default |
NativeDisplayBuffer (NativeDisplayBuffer const &)=delete | |
NativeDisplayBuffer | operator= (NativeDisplayBuffer const &)=delete |
![]() | |
RenderTarget ()=default | |
RenderTarget (RenderTarget const &)=delete | |
RenderTarget & | operator= (RenderTarget const &)=delete |
mir::graphics::X::DisplayBuffer::DisplayBuffer | ( | geometry::Size const | sz, |
EGLDisplay const | d, | ||
EGLSurface const | s, | ||
EGLContext const | c, | ||
MirOrientation const | o | ||
) |
|
overridevirtual |
Makes the the current GL render target.
Implements mir::renderer::gl::RenderTarget.
|
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.
|
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 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() |
Implements mir::graphics::DisplayBuffer.
|
overridevirtual |
Releases the current GL render target.
Implements mir::renderer::gl::RenderTarget.
void mir::graphics::X::DisplayBuffer::set_orientation | ( | MirOrientation const | new_orientation | ) |
|
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.
|
overridevirtual |
The area the DisplayBuffer occupies in the virtual screen space.
Implements mir::graphics::DisplayBuffer.
Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016