guestrendering/guestegl/src/guestegl.cpp
branchbug235_bringup_0
changeset 18 3064c37a6509
parent 17 c9d1eb0bfac8
child 19 da7c1a80df0d
equal deleted inserted replaced
17:c9d1eb0bfac8 18:3064c37a6509
    57 	}
    57 	}
    58 const char * CGuestEGL::EglInternalFunction_QueryExtensionList()
    58 const char * CGuestEGL::EglInternalFunction_QueryExtensionList()
    59 	{
    59 	{
    60 	return NULL; // stub code
    60 	return NULL; // stub code
    61 	}
    61 	}
    62 ProcPointer CGuestEGL::eglGetProcAddress(const char*)
    62 
    63 	{
    63 /**
    64 	return NULL; // stub code
    64 Obtain extension function pointer.
       
    65 
       
    66 Provide support for the Symbian Graphics SHAI for EGL Extensions
       
    67 @param aName	Name of extension
       
    68 @return			Function pointer, or NULL if not available.
       
    69 
       
    70 @note  Known extensions:
       
    71    1. EGL_KHR_image
       
    72    2. EGL_KHR_image_base
       
    73    3. EGL_KHR_image_pixmap
       
    74    4. EGL_KHR_vg_parent_image
       
    75    5. EGL_KHR_gl_texture_2D_image
       
    76    6. EGL_KHR_gl_texture_cubemap_image
       
    77    7. EGL_KHR_lock_surface
       
    78    8. EGL_NOK_resource_profiling2
       
    79    9. EGL_SYMBIAN_composition
       
    80   10. EGL_NOK_image_endpoint
       
    81   11. NOK_pixmap_type_rsgimage
       
    82   12. eglSwapBuffersRegionNOK
       
    83 
       
    84 @see Khronos EGL 1.4 Specification, eglGetProcAddress()
       
    85 @author Faisal Memon Community EGL project
       
    86 
       
    87 */
       
    88 ProcPointer CGuestEGL::eglGetProcAddress(const char* aName)
       
    89 	{
       
    90     if (strncmp("EGL_KHR_image", aName, strlen("EGL_KHR_image")) == 0)
       
    91         {
       
    92         return NULL;
       
    93         }
       
    94     else if (strncmp("EGL_KHR_image_base", aName, strlen("EGL_KHR_image_base")) == 0)
       
    95         {
       
    96         return NULL;
       
    97         }
       
    98     else if (strncmp("EGL_KHR_image_pixmap", aName, strlen("EGL_KHR_image_pixmap")) == 0)
       
    99         {
       
   100         return NULL;
       
   101         }
       
   102     else if (strncmp("EGL_KHR_vg_parent_image", aName, strlen("EGL_KHR_vg_parent_image")) == 0)
       
   103         {
       
   104         return NULL;
       
   105         }
       
   106     else if (strncmp("EGL_KHR_gl_texture_2D_image", aName, strlen("EGL_KHR_gl_texture_2D_image")) == 0)
       
   107         {
       
   108         return NULL;
       
   109         }
       
   110     else if (strncmp("EGL_KHR_gl_texture_cubemap_image", aName, strlen("EGL_KHR_gl_texture_cubemap_image")) == 0)
       
   111         {
       
   112         return NULL;
       
   113         }
       
   114     else if (strncmp("EGL_KHR_lock_surface", aName, strlen("EGL_KHR_lock_surface")) == 0)
       
   115         {
       
   116         return NULL;
       
   117         }
       
   118     else if (strncmp("EGL_NOK_resource_profiling2", aName, strlen("EGL_NOK_resource_profiling2")) == 0)
       
   119         {
       
   120         return NULL;
       
   121         }
       
   122     else if (strncmp("EGL_SYMBIAN_composition", aName, strlen("EGL_SYMBIAN_composition")) == 0)
       
   123         {
       
   124         return NULL;
       
   125         }
       
   126     else if (strncmp("EGL_NOK_image_endpoint", aName, strlen("EGL_NOK_image_endpoint")) == 0)
       
   127         {
       
   128         return NULL;
       
   129         }
       
   130     else if (strncmp("NOK_pixmap_type_rsgimage", aName, strlen("NOK_pixmap_type_rsgimage")) == 0)
       
   131         {
       
   132         return NULL;
       
   133         }
       
   134     else if (strncmp("eglSwapBuffersRegionNOK", aName, strlen("eglSwapBuffersRegionNOK")) == 0)
       
   135         {
       
   136         return NULL;
       
   137         }
       
   138     else
       
   139         {
       
   140         return NULL;
       
   141         }
    65 	}
   142 	}
    66 
   143 
    67 EGLSurface CGuestEGL::eglCreateWindowSurface(TEglThreadState&, int, int, void*, const int*)
   144 EGLSurface CGuestEGL::eglCreateWindowSurface(TEglThreadState&, int, int, void*, const int*)
    68 	{
   145 	{
    69 	return 0; // stub code
   146 	return 0; // stub code