• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SYSTEM_COMMON_EGL_CLIENT_IFACE_H
2 #define _SYSTEM_COMMON_EGL_CLIENT_IFACE_H
3 
4 struct EGLThreadInfo;  // defined in ThreadInfo.h
5 
6 typedef struct {
7     EGLThreadInfo* (*getThreadInfo)();
8     const char* (*getGLString)(int glEnum);
9 } EGLClient_eglInterface;
10 
11 typedef struct {
12     void* (*getProcAddress)(const char *funcName);
13     void (*init)();
14     void (*finish)();
15 } EGLClient_glesInterface;
16 
17 //
18 // Any GLES/GLES2 client API library should define a function named "init_emul_gles"
19 // with the following prototype,
20 // It will be called by EGL after loading the GLES library for initialization
21 // and exchanging interface function pointers.
22 //
23 typedef EGLClient_glesInterface *(*init_emul_gles_t)(EGLClient_eglInterface *eglIface);
24 
25 #endif
26