Mir
Public Member Functions | List of all members
mir::scene::GLPixelBuffer Class Reference

Extracts the pixels from a graphics::Buffer using GL facilities. More...

#include <gl_pixel_buffer.h>

Inheritance diagram for mir::scene::GLPixelBuffer:
[legend]

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
 
PixelBufferoperator= (PixelBuffer const &)=delete
 

Detailed Description

Extracts the pixels from a graphics::Buffer using GL facilities.

Constructor & Destructor Documentation

mir::scene::GLPixelBuffer::GLPixelBuffer ( std::unique_ptr< graphics::GLContext gl_context)
mir::scene::GLPixelBuffer::~GLPixelBuffer ( )
noexcept

Member Function Documentation

void const * mir::scene::GLPixelBuffer::as_argb_8888 ( )
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.

void mir::scene::GLPixelBuffer::fill_from ( graphics::Buffer buffer)
virtual

Fills the PixelBuffer with the contents of a graphics::Buffer.

Parameters
[in]bufferthe buffer to get the pixels of

Implements mir::scene::PixelBuffer.

geom::Size mir::scene::GLPixelBuffer::size ( ) const
virtual

The size of the pixel buffer.

Implements mir::scene::PixelBuffer.

geom::Stride mir::scene::GLPixelBuffer::stride ( ) const
virtual

The stride of the pixel buffer.

Implements mir::scene::PixelBuffer.


The documentation for this class was generated from the following files:

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016