![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
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 | |
CGBMDevice & | operator= (const CGBMDevice &)=delete |
CGBMDevice (gbm_device *device) | |
~CGBMDevice ()=default | |
bool | CreateSurface (int width, int height, uint32_t format, const uint64_t *modifiers, const int modifiers_count) |
Create a gbm surface. | |
gbm_device * | Get () const |
Get the underlying gbm_device. | |
CGBMDevice::CGBMSurface & | GetSurface () const |
Get the CGBMSurface object. | |
A wrapper for gbm_device to allow OOP and RAII.
|
delete |
|
explicit |
|
default |
bool CGBMUtils::CGBMDevice::CreateSurface | ( | int | width, |
int | height, | ||
uint32_t | format, | ||
const uint64_t * | modifiers, | ||
const int | modifiers_count ) |
Create a gbm surface.
width | The width to use for the surface |
height | The height to use for the surface |
format | The format to use for the surface |
modifiers | The modifiers to use for the surface |
modifiers_count | The amount of modifiers in the modifiers param |
|
inline |
Get the underlying gbm_device.
|
inline |
Get the CGBMSurface object.
|
delete |