|
Mir
|
Extracts the pixels from a graphics::Buffer using GL facilities. More...
#include <gl_pixel_buffer.h>
Public Member Functions | |
| GLPixelBuffer (std::unique_ptr< graphics::GLContext > gl_context) | |
| ~GLPixelBuffer () noexcept | |
| void | fill_from (graphics::Buffer &buffer) |
| Fills the PixelBuffer with the contents of a graphics::Buffer. More... | |
| void const * | as_argb_8888 () |
| The pixels in 0xAARRGGBB format. More... | |
| geometry::Size | size () const |
| The size of the pixel buffer. More... | |
| geometry::Stride | stride () const |
| The stride of the pixel buffer. More... | |
Public Member Functions inherited from mir::scene::PixelBuffer | |
| virtual | ~PixelBuffer ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from mir::scene::PixelBuffer | |
| PixelBuffer ()=default | |
| PixelBuffer (PixelBuffer const &)=delete | |
| PixelBuffer & | operator= (PixelBuffer const &)=delete |
Extracts the pixels from a graphics::Buffer using GL facilities.
| mir::scene::GLPixelBuffer::GLPixelBuffer | ( | std::unique_ptr< graphics::GLContext > | gl_context | ) |
|
noexcept |
|
virtual |
The pixels in 0xAARRGGBB format.
The pixel data is owned by the PixelBuffer object and is only valid until the next call to fill_from().
This method may involve transformation of the extracted data.
Implements mir::scene::PixelBuffer.
|
virtual |
Fills the PixelBuffer with the contents of a graphics::Buffer.
| [in] | buffer | the buffer to get the pixels of |
Implements mir::scene::PixelBuffer.
|
virtual |
The size of the pixel buffer.
Implements mir::scene::PixelBuffer.
|
virtual |
The stride of the pixel buffer.
Implements mir::scene::PixelBuffer.
Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016