Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Attributes
Dali::Internal::Adaptor::EglImageExtensions Class Reference

EglImageExtensions class provides EGL image extension support. More...

#include <egl-image-extensions.h>

Collaboration diagram for Dali::Internal::Adaptor::EglImageExtensions:
Collaboration graph
[legend]

Public Member Functions

 EglImageExtensions (EglImplementation *impl)
 Constructor. More...
 
 ~EglImageExtensions ()
 Destructor. More...
 
void * CreateImageKHR (EGLClientBuffer clientBuffer)
 If the EGL Image extension is available this function returns a EGLImageKHR. More...
 
void DestroyImageKHR (void *eglImageKHR)
 If the EGL Image extension is available this function destroys the a EGLImageKHR. More...
 
void TargetTextureKHR (void *eglImageKHR)
 defines a 2D texture More...
 
void InitializeEglImageKHR ()
 Get the functions for using ImageKHR. More...
 

Private Attributes

EglImplementationmEglImplementation
 
bool mImageKHRInitialized
 Flag for whether extended KHR functions loaded. More...
 
bool mImageKHRInitializeFailed
 
         Flag to avoid trying to reload extended KHR functions, if

it fails the first time More...

 

Detailed Description

EglImageExtensions class provides EGL image extension support.

Definition at line 37 of file egl-image-extensions.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::EglImageExtensions::EglImageExtensions ( EglImplementation impl)

Constructor.

Definition at line 59 of file egl-image-extensions.cpp.

References DALI_ASSERT_ALWAYS.

Dali::Internal::Adaptor::EglImageExtensions::~EglImageExtensions ( )

Destructor.

Definition at line 67 of file egl-image-extensions.cpp.

Member Function Documentation

void * Dali::Internal::Adaptor::EglImageExtensions::CreateImageKHR ( EGLClientBuffer  clientBuffer)

If the EGL Image extension is available this function returns a EGLImageKHR.

Parameters
clientBufferClient buffer to use for image creation
Returns
an object that holds a EGLImageKHR

Definition at line 71 of file egl-image-extensions.cpp.

References DALI_ASSERT_DEBUG, DALI_LOG_ERROR, anonymous_namespace{egl-image-extensions.cpp}::eglCreateImageKHR, Dali::Internal::Adaptor::EglImplementation::GetDisplay(), InitializeEglImageKHR(), mEglImplementation, and mImageKHRInitialized.

Here is the call graph for this function:

void Dali::Internal::Adaptor::EglImageExtensions::DestroyImageKHR ( void *  eglImageKHR)

If the EGL Image extension is available this function destroys the a EGLImageKHR.

Parameters
eglImageKHRObject that holds a EGLImageKHR

Definition at line 145 of file egl-image-extensions.cpp.

References DALI_ASSERT_DEBUG, DALI_LOG_ERROR, anonymous_namespace{egl-image-extensions.cpp}::eglDestroyImageKHR, Dali::Internal::Adaptor::EglImplementation::GetDisplay(), mEglImplementation, and mImageKHRInitialized.

Here is the call graph for this function:

void Dali::Internal::Adaptor::EglImageExtensions::InitializeEglImageKHR ( )
void Dali::Internal::Adaptor::EglImageExtensions::TargetTextureKHR ( void *  eglImageKHR)

defines a 2D texture

Parameters
eglImageKHRObject that holds a EGLImageKHR

Definition at line 190 of file egl-image-extensions.cpp.

References DALI_ASSERT_DEBUG, DALI_LOG_ERROR, GL_NO_ERROR, GL_TEXTURE_2D, anonymous_namespace{egl-image-extensions.cpp}::glEGLImageTargetTexture2DOES, and mImageKHRInitialized.

Member Data Documentation

EglImplementation* Dali::Internal::Adaptor::EglImageExtensions::mEglImplementation
private

Definition at line 80 of file egl-image-extensions.h.

Referenced by CreateImageKHR(), and DestroyImageKHR().

bool Dali::Internal::Adaptor::EglImageExtensions::mImageKHRInitialized
private

Flag for whether extended KHR functions loaded.

Definition at line 82 of file egl-image-extensions.h.

Referenced by CreateImageKHR(), DestroyImageKHR(), InitializeEglImageKHR(), and TargetTextureKHR().

bool Dali::Internal::Adaptor::EglImageExtensions::mImageKHRInitializeFailed
private

         Flag to avoid trying to reload extended KHR functions, if

it fails the first time

Definition at line 83 of file egl-image-extensions.h.

Referenced by InitializeEglImageKHR().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali