sl@0
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// EGL/EGLTYPES.H
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef __EGL_EGLTYPES_H__
|
sl@0
|
19 |
#define __EGL_EGLTYPES_H__
|
sl@0
|
20 |
|
sl@0
|
21 |
#include <e32def.h>
|
sl@0
|
22 |
#include <khronos_types.h>
|
sl@0
|
23 |
|
sl@0
|
24 |
|
sl@0
|
25 |
#ifndef EGLAPIENTRY
|
sl@0
|
26 |
#define EGLAPIENTRY
|
sl@0
|
27 |
#endif
|
sl@0
|
28 |
#ifndef EGL_APIENTRY
|
sl@0
|
29 |
|
sl@0
|
30 |
#define EGL_APIENTRY EGLAPIENTRY
|
sl@0
|
31 |
#endif
|
sl@0
|
32 |
#ifndef EGLAPI
|
sl@0
|
33 |
#define EGLAPI IMPORT_C
|
sl@0
|
34 |
#endif
|
sl@0
|
35 |
|
sl@0
|
36 |
|
sl@0
|
37 |
/**
|
sl@0
|
38 |
@publishedAll
|
sl@0
|
39 |
@released
|
sl@0
|
40 |
*/
|
sl@0
|
41 |
|
sl@0
|
42 |
/*
|
sl@0
|
43 |
** egltypes.h is platform dependent. It defines:
|
sl@0
|
44 |
**
|
sl@0
|
45 |
** - EGL types and resources
|
sl@0
|
46 |
** - Native types
|
sl@0
|
47 |
** - EGL and native handle values
|
sl@0
|
48 |
**
|
sl@0
|
49 |
** EGL types and resources are to be typedef'ed with appropriate platform
|
sl@0
|
50 |
** dependent resource handle types. EGLint must be an integer of at least
|
sl@0
|
51 |
** 32-bit.
|
sl@0
|
52 |
**
|
sl@0
|
53 |
** NativeDisplayType, NativeWindowType and NativePixmapType are to be
|
sl@0
|
54 |
** replaced with corresponding types of the native window system in egl.h.
|
sl@0
|
55 |
**
|
sl@0
|
56 |
** EGL and native handle values must match their types.
|
sl@0
|
57 |
**
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
|
sl@0
|
60 |
|
sl@0
|
61 |
typedef int EGLBoolean;
|
sl@0
|
62 |
typedef int EGLint;
|
sl@0
|
63 |
typedef int EGLenum;
|
sl@0
|
64 |
|
sl@0
|
65 |
typedef int EGLDisplay;
|
sl@0
|
66 |
typedef int EGLConfig;
|
sl@0
|
67 |
typedef int EGLSurface;
|
sl@0
|
68 |
typedef int EGLContext;
|
sl@0
|
69 |
typedef int EGLClientBuffer;
|
sl@0
|
70 |
typedef int EGLImageKHR;
|
sl@0
|
71 |
typedef khronos_utime_nanoseconds_t EGLTimeKHR;
|
sl@0
|
72 |
typedef void* EGLSyncKHR;
|
sl@0
|
73 |
|
sl@0
|
74 |
typedef int NativeDisplayType;
|
sl@0
|
75 |
typedef void* NativeWindowType;
|
sl@0
|
76 |
typedef void* NativePixmapType;
|
sl@0
|
77 |
|
sl@0
|
78 |
/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
|
sl@0
|
79 |
typedef NativeDisplayType EGLNativeDisplayType;
|
sl@0
|
80 |
typedef NativePixmapType EGLNativePixmapType;
|
sl@0
|
81 |
typedef NativeWindowType EGLNativeWindowType;
|
sl@0
|
82 |
|
sl@0
|
83 |
#define EGL_DEFAULT_DISPLAY 0
|
sl@0
|
84 |
#define EGL_NO_CONTEXT 0
|
sl@0
|
85 |
#define EGL_NO_DISPLAY 0
|
sl@0
|
86 |
#define EGL_NO_SURFACE 0
|
sl@0
|
87 |
#define EGL_NO_IMAGE_KHR 0
|
sl@0
|
88 |
|
sl@0
|
89 |
#endif // __EGL_EGLTYPES_H__
|
sl@0
|
90 |
|