Mir
Public Member Functions | Static Public Member Functions | List of all members
miroil::GLBuffer Class Reference

#include <mirbuffer.h>

Public Member Functions

 ~GLBuffer ()
 
 GLBuffer (std::shared_ptr< mir::graphics::Buffer > const &buffer)
 
bool has_alpha_channel () const
 
mir::geometry::Size size () const
 
void bind ()
 
void reset (std::shared_ptr< mir::graphics::Buffer > const &buffer)
 
void reset ()
 
bool empty ()
 

Static Public Member Functions

static std::shared_ptr< GLBufferfrom_mir_buffer (std::shared_ptr< mir::graphics::Buffer > const &buffer)
 

Constructor & Destructor Documentation

◆ ~GLBuffer()

miroil::GLBuffer::~GLBuffer ( )

◆ GLBuffer()

miroil::GLBuffer::GLBuffer ( std::shared_ptr< mir::graphics::Buffer > const &  buffer)
explicit

Member Function Documentation

◆ bind()

void miroil::GLBuffer::bind ( )

◆ empty()

bool miroil::GLBuffer::empty ( )

◆ from_mir_buffer()

static std::shared_ptr< GLBuffer > miroil::GLBuffer::from_mir_buffer ( std::shared_ptr< mir::graphics::Buffer > const &  buffer)
static

◆ has_alpha_channel()

bool miroil::GLBuffer::has_alpha_channel ( ) const

◆ reset() [1/2]

void miroil::GLBuffer::reset ( )

◆ reset() [2/2]

void miroil::GLBuffer::reset ( std::shared_ptr< mir::graphics::Buffer > const &  buffer)

◆ size()

mir::geometry::Size miroil::GLBuffer::size ( ) const

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

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.