2 * Copyright 2011 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _SYSTEM_COMMON_EGL_CLIENT_IFACE_H
18 #define _SYSTEM_COMMON_EGL_CLIENT_IFACE_H
20 struct EGLThreadInfo; // defined in ThreadInfo.h
23 EGLThreadInfo* (*getThreadInfo)();
24 const char* (*getGLString)(int glEnum);
25 } EGLClient_eglInterface;
28 void* (*getProcAddress)(const char *funcName);
31 } EGLClient_glesInterface;
34 // Any GLES/GLES2 client API library should define a function named "init_emul_gles"
35 // with the following prototype,
36 // It will be called by EGL after loading the GLES library for initialization
37 // and exchanging interface function pointers.
39 typedef EGLClient_glesInterface *(*init_emul_gles_t)(EGLClient_eglInterface *eglIface);