Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CEGLContextUtils Class Referencefinal

#include <EGLUtils.h>

Public Member Functions

 CEGLContextUtils ()=default
 
 CEGLContextUtils (EGLenum platform, std::string const &platformExtension)
 
 ~CEGLContextUtils ()
 
bool CreateDisplay (EGLNativeDisplayType nativeDisplay)
 
bool CreatePlatformDisplay (void *nativeDisplay, EGLNativeDisplayType nativeDisplayLegacy)
 
void SurfaceAttrib (EGLint attribute, EGLint value)
 
bool CreateSurface (EGLNativeWindowType nativeWindow, EGLint HDRcolorSpace=EGL_NONE)
 
bool CreatePlatformSurface (void *nativeWindow, EGLNativeWindowType nativeWindowLegacy)
 
bool InitializeDisplay (EGLint renderingApi)
 
bool ChooseConfig (EGLint renderableType, EGLint visualId=0, bool hdr=false)
 
bool CreateContext (CEGLAttributesVec contextAttribs)
 
bool BindContext ()
 
void Destroy ()
 
void DestroySurface ()
 
void DestroyContext ()
 
bool SetVSync (bool enable)
 
bool TrySwapBuffers ()
 
void SetDamagedRegions (const CDirtyRegionList &dirtyRegions)
 
int GetBufferAge ()
 
bool IsPlatformSupported () const
 
EGLint GetConfigAttrib (EGLint attribute) const
 
EGLDisplay GetEGLDisplay () const
 
EGLSurface GetEGLSurface () const
 
EGLContext GetEGLContext () const
 
EGLConfig GetEGLConfig () const
 
bool BindTextureUploadContext ()
 
bool UnbindTextureUploadContext ()
 
bool HasContext ()
 

Constructor & Destructor Documentation

◆ CEGLContextUtils() [1/2]

CEGLContextUtils::CEGLContextUtils ( )
default

◆ CEGLContextUtils() [2/2]

CEGLContextUtils::CEGLContextUtils ( EGLenum platform,
std::string const & platformExtension )
Parameters
platformplatform as constant from an extension building on EGL_EXT_platform_base

◆ ~CEGLContextUtils()

CEGLContextUtils::~CEGLContextUtils ( )

Member Function Documentation

◆ BindContext()

bool CEGLContextUtils::BindContext ( )

◆ BindTextureUploadContext()

bool CEGLContextUtils::BindTextureUploadContext ( )

◆ ChooseConfig()

bool CEGLContextUtils::ChooseConfig ( EGLint renderableType,
EGLint visualId = 0,
bool hdr = false )

◆ CreateContext()

bool CEGLContextUtils::CreateContext ( CEGLAttributesVec contextAttribs)

◆ CreateDisplay()

bool CEGLContextUtils::CreateDisplay ( EGLNativeDisplayType nativeDisplay)

◆ CreatePlatformDisplay()

bool CEGLContextUtils::CreatePlatformDisplay ( void * nativeDisplay,
EGLNativeDisplayType nativeDisplayLegacy )

Create EGLDisplay with EGL_EXT_platform_base

Falls back to CreateDisplay (with nativeDisplayLegacy) on failure. The native displays to use with the platform-based and the legacy approach may be defined to have different types and/or semantics, so this function takes both as separate parameters.

Parameters
nativeDisplaynative display to use with eglGetPlatformDisplayEXT
nativeDisplayLegacynative display to use with eglGetDisplay

◆ CreatePlatformSurface()

bool CEGLContextUtils::CreatePlatformSurface ( void * nativeWindow,
EGLNativeWindowType nativeWindowLegacy )

◆ CreateSurface()

bool CEGLContextUtils::CreateSurface ( EGLNativeWindowType nativeWindow,
EGLint HDRcolorSpace = EGL_NONE )

◆ Destroy()

void CEGLContextUtils::Destroy ( )

◆ DestroyContext()

void CEGLContextUtils::DestroyContext ( )

◆ DestroySurface()

void CEGLContextUtils::DestroySurface ( )

◆ GetBufferAge()

int CEGLContextUtils::GetBufferAge ( )

◆ GetConfigAttrib()

EGLint CEGLContextUtils::GetConfigAttrib ( EGLint attribute) const

◆ GetEGLConfig()

EGLConfig CEGLContextUtils::GetEGLConfig ( ) const
inline

◆ GetEGLContext()

EGLContext CEGLContextUtils::GetEGLContext ( ) const
inline

◆ GetEGLDisplay()

EGLDisplay CEGLContextUtils::GetEGLDisplay ( ) const
inline

◆ GetEGLSurface()

EGLSurface CEGLContextUtils::GetEGLSurface ( ) const
inline

◆ HasContext()

bool CEGLContextUtils::HasContext ( )

◆ InitializeDisplay()

bool CEGLContextUtils::InitializeDisplay ( EGLint renderingApi)

◆ IsPlatformSupported()

bool CEGLContextUtils::IsPlatformSupported ( ) const

◆ SetDamagedRegions()

void CEGLContextUtils::SetDamagedRegions ( const CDirtyRegionList & dirtyRegions)

◆ SetVSync()

bool CEGLContextUtils::SetVSync ( bool enable)

◆ SurfaceAttrib()

void CEGLContextUtils::SurfaceAttrib ( EGLint attribute,
EGLint value )

◆ TrySwapBuffers()

bool CEGLContextUtils::TrySwapBuffers ( )

◆ UnbindTextureUploadContext()

bool CEGLContextUtils::UnbindTextureUploadContext ( )

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