2 * Copyright (C) 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.
16 #ifndef _EGL_CONTEXT_H
17 #define _EGL_CONTEXT_H
19 #include "GLClientState.h"
20 #include "GLSharedGroup.h"
25 IS_CURRENT = 0x00010000,
26 NEVER_CURRENT = 0x00020000
29 EGLContext_t(EGLDisplay dpy, EGLConfig config, EGLContext_t* shareCtx);
36 EGLContext_t * shareCtx;
39 const char* versionString;
40 const char* vendorString;
41 const char* rendererString;
42 const char* shaderVersionString;
43 const char* extensionString;
45 GLClientState * getClientState(){ return clientState; }
46 GLSharedGroupPtr getSharedGroup(){ return sharedGroup; }
48 GLClientState * clientState;
49 GLSharedGroupPtr sharedGroup;