2 * OpenGL ES 2.0 memory performance estimator
3 * Copyright (C) 2009 Nokia
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 * \author Sami Kyöstilä <sami.kyostila@nokia.com>
25 #if defined(__cplusplus)
30 * Create a native display
32 EGLBoolean nativeCreateDisplay(EGLNativeDisplayType *pNativeDisplay);
35 * Destroy a native display
37 void nativeDestroyDisplay(EGLNativeDisplayType nativeDisplay);
40 * Create a native window
42 * @param nativeDisplay Native display handle
43 * @param dpy EGL display handle
44 * @param config Configuration to be used with the window
45 * @param title Window title
46 * @param width Window width in pixels
47 * @param height Window height in pixels
48 * @param nativeWindow Output: new window handle
50 EGLBoolean nativeCreateWindow(EGLNativeDisplayType nativeDisplay, EGLDisplay dpy,
51 EGLConfig config, const char *title, int width,
52 int height, EGLNativeWindowType *nativeWindow);
55 * Destroy a native window
57 * @param nativeDisplay Native display handle
58 * @param nativeWindow Window to destroy
60 void nativeDestroyWindow(EGLNativeDisplayType nativeDisplay, EGLNativeWindowType nativeWindow);
63 * Create a native pixmap
65 * @param nativeDisplay Native display handle
66 * @param dpy EGL display handle
67 * @param config Configuration to be used with the pixmap
68 * @param width Pixmap width in pixels
69 * @param height Pixmap height in pixels
70 * @param nativPixmap Output: new pixmap handle
72 EGLBoolean nativeCreatePixmap(EGLNativeDisplayType nativeDisplay,
73 EGLDisplay dpy, EGLConfig config,
74 int width, int height, EGLNativePixmapType *nativePixmap);
77 * Destroy a native pixmap
79 void nativeDestroyPixmap(EGLNativeDisplayType nativeDisplay, EGLNativePixmapType nativePixmap);
81 #if defined(__cplusplus)