• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*-------------------------------------------------------------------------
2 * drawElements Quality Program EGL Utilities
3 * ------------------------------------------
4 *
5 * Copyright 2014 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 *//*!
20 * \file
21 * \brief EGL wrapper base types.
22 *
23 * \note Unlike most .inl files this one is NOT auto-generated. This is .inl
24 *		 because it is included from both glwDefs.hpp (inside glw namespace)
25 *		 and glw.h (in root namespace, as C source).
26 *//*--------------------------------------------------------------------*/
27
28/* Calling convention. */
29#if (DE_OS == DE_OS_ANDROID)
30#	include <sys/cdefs.h>
31#	if !defined(__NDK_FPABI__)
32#		define __NDK_FPABI__
33#	endif
34#	define EGLW_APICALL __NDK_FPABI__
35#else
36#	define EGLW_APICALL
37#endif
38
39#if (DE_OS == DE_OS_WIN32)
40#	define EGLW_APIENTRY __stdcall
41#else
42#	define EGLW_APIENTRY
43#endif
44
45typedef deInt32		EGLint;
46typedef deUint32	EGLenum;
47typedef deUint32	EGLBoolean;
48typedef deIntptr	EGLAttrib;
49typedef deUint64	EGLTime;
50
51typedef void*		EGLDisplay;
52typedef void*		EGLConfig;
53typedef void*		EGLSurface;
54typedef void*		EGLContext;
55typedef void*		EGLImage;
56typedef void*		EGLClientBuffer;
57typedef void*		EGLSync;
58
59typedef void*		EGLNativeDisplayType;
60typedef void*		EGLNativeWindowType;
61typedef void*		EGLNativePixmapType;
62
63typedef void (*__eglMustCastToProperFunctionPointerType) (void);
64
65typedef EGLImage	EGLImageKHR;
66typedef EGLSync		EGLSyncKHR;
67typedef EGLTime		EGLTimeKHR;
68