Added missing includes
[glmemperf] / native.h
1 /**
2  * OpenGL ES 2.0 memory performance estimator
3  * Copyright (C) 2009 Nokia
4  *
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.
9  *
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.
14  *
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.
18  *
19  * \author Sami Kyöstilä <sami.kyostila@nokia.com>
20  *
21  * Native windowing
22  */
23 #include <EGL/egl.h>
24
25 #if defined(__cplusplus)
26 extern "C" {
27 #endif
28
29 /**
30  *  Create a native display
31  */
32 EGLBoolean nativeCreateDisplay(EGLNativeDisplayType *pNativeDisplay);
33
34 /**
35  *  Destroy a native display
36  */
37 void nativeDestroyDisplay(EGLNativeDisplayType nativeDisplay);
38
39 /**
40  *  Create a native window
41  *
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
49  */
50 EGLBoolean nativeCreateWindow(EGLNativeDisplayType nativeDisplay, EGLDisplay dpy,
51                               EGLConfig config, const char *title, int width, 
52                               int height, EGLNativeWindowType *nativeWindow);
53
54 /**
55  *  Destroy a native window
56  *
57  *  @param nativeDisplay                Native display handle
58  *  @param nativeWindow                 Window to destroy
59  */
60 void nativeDestroyWindow(EGLNativeDisplayType nativeDisplay, EGLNativeWindowType nativeWindow);
61
62 /**
63  *  Create a native pixmap
64  *
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
71  */
72 EGLBoolean nativeCreatePixmap(EGLNativeDisplayType nativeDisplay, 
73                               EGLDisplay dpy, EGLConfig config, 
74                               int width, int height, EGLNativePixmapType *nativePixmap);
75
76 /**
77  *  Destroy a native pixmap
78  */
79 void nativeDestroyPixmap(EGLNativeDisplayType nativeDisplay, EGLNativePixmapType nativePixmap);
80
81 #if defined(__cplusplus)
82 }
83 #endif