xbmc
Classes | Public Member Functions | List of all members
KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice Class Reference

A wrapper for gbm_device to allow OOP and RAII. More...

#include <GBMUtils.h>

Classes

class  CGBMSurface
 A wrapper for gbm_surface to allow OOP and RAII. More...
 

Public Member Functions

 CGBMDevice (const CGBMDevice &)=delete
 
CGBMDeviceoperator= (const CGBMDevice &)=delete
 
 CGBMDevice (gbm_device *device)
 
bool CreateSurface (int width, int height, uint32_t format, const uint64_t *modifiers, const int modifiers_count)
 Create a gbm surface. More...
 
gbm_device * Get () const
 Get the underlying gbm_device. More...
 
CGBMDevice::CGBMSurfaceGetSurface () const
 Get the CGBMSurface object. More...
 

Detailed Description

A wrapper for gbm_device to allow OOP and RAII.

Member Function Documentation

◆ CreateSurface()

bool CGBMUtils::CGBMDevice::CreateSurface ( int  width,
int  height,
uint32_t  format,
const uint64_t *  modifiers,
const int  modifiers_count 
)

Create a gbm surface.

Parameters
widthThe width to use for the surface
heightThe height to use for the surface
formatThe format to use for the surface
modifiersThe modifiers to use for the surface
modifiers_countThe amount of modifiers in the modifiers param
Returns
true The surface creation succeeded
false The surface creation failed

◆ Get()

gbm_device* KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::Get ( ) const
inline

Get the underlying gbm_device.

Returns
gbm_device* A pointer to the underlying gbm_device

◆ GetSurface()

CGBMDevice::CGBMSurface* KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::GetSurface ( ) const
inline

Get the CGBMSurface object.

Returns
CGBMSurface* A pointer to the CGBMSurface object

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