|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 /* |
|
18 * eglext.h |
|
19 * |
|
20 * Created on: 1.7.2009 |
|
21 * Author: hennailvonen |
|
22 * For stub purposes until the real thing is available (wk32 release) |
|
23 * eglexthackedforsymbian.h was made available in wk32 as an example eglext.h |
|
24 */ |
|
25 |
|
26 #ifndef EGLEXT_H_ |
|
27 #define EGLEXT_H_ |
|
28 |
|
29 // Temp, use local extension definitions instead global |
|
30 #define EGLEXT_LOCAL |
|
31 |
|
32 #ifdef __cplusplus |
|
33 extern "C" { |
|
34 #endif /*__cplusplus*/ |
|
35 |
|
36 #include <EGL/egl.h> |
|
37 #include <EGL/egltypes.h> |
|
38 |
|
39 |
|
40 /* Header file version number */ |
|
41 /* Current version at http://www.khronos.org/registry/egl/ */ |
|
42 /* $Revision: 7244 $ on $Date: 2009-01-20 17:06:59 -0800 (Tue, 20 Jan 2009) $ */ |
|
43 #ifndef EGL_EGLEXT_VERSION |
|
44 #define EGL_EGLEXT_VERSION 3 |
|
45 |
|
46 #ifndef EGLAPIENTRYP |
|
47 #define EGLAPIENTRYP EGLAPIENTRY * |
|
48 #endif |
|
49 |
|
50 /* We want this */ |
|
51 #ifndef EGL_EGLEXT_PROTOTYPES |
|
52 #define EGL_EGLEXT_PROTOTYPES |
|
53 #endif |
|
54 |
|
55 /*************************************************************/ |
|
56 |
|
57 |
|
58 #ifndef EGL_NOK_resource_profiling |
|
59 #define EGL_NOK_resource_profiling 1 |
|
60 #ifdef EGL_EGLEXT_PROTOTYPES |
|
61 EGLAPI EGLBoolean EGLAPIENTRY eglQueryProfilingDataNOK(EGLDisplay dpy, EGLint query_bits, EGLint *data, EGLint data_size, EGLint *data_count); |
|
62 #endif /* EGL_EGLEXT_PROTOTYPES */ |
|
63 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYPROFILINGDATANOKPROC) (EGLDisplay dpy, EGLint query_bits, EGLint *data, EGLint data_size, EGLint *data_count); |
|
64 typedef void *EGLNativeProcessIdTypeNOK; |
|
65 #define EGL_PROF_QUERY_GLOBAL_BIT_NOK 0x0001 |
|
66 #define EGL_PROF_QUERY_MEMORY_USAGE_BIT_NOK 0x0002 |
|
67 //Returned as attribute identifiers by eglQueryProfilingDataNOK: |
|
68 #define EGL_PROF_TOTAL_MEMORY_NOK 0x3070 |
|
69 #define EGL_PROF_USED_MEMORY_NOK 0x3071 |
|
70 #define EGL_PROF_PROCESS_ID_NOK 0x3072 |
|
71 #define EGL_PROF_PROCESS_USED_PRIVATE_MEMORY_NOK 0x3073 |
|
72 #define EGL_PROF_PROCESS_USED_SHARED_MEMORY_NOK 0x3074 |
|
73 #endif /*EGL_NOK_resource_profiling*/ |
|
74 |
|
75 #endif /*EGL_EGLEXT_VERSION*/ |
|
76 #ifdef __cplusplus |
|
77 } |
|
78 #endif /*__cplusplus*/ |
|
79 |
|
80 |
|
81 #endif /* EGLEXT_H_ */ |