2 * Copyright (C) 2010 LunarG Inc.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
23 * Chia-I Wu <olv@lunarg.com>
36 /* initialized by native display */
39 EGLNativeWindowType window;
40 EGLNativePixmapType pixmap;
41 EGLSurface surface; /* pbuffer or screen surface */
50 EGLUTreshapeCB reshape_cb;
51 EGLUTdisplayCB display_cb;
52 EGLUTkeyboardCB keyboard_cb;
53 EGLUTspecialCB special_cb;
58 int window_width, window_height;
59 const char *display_name;
67 /* initialized by native display */
68 EGLNativeDisplayType native_dpy;
74 struct eglut_window *current;
79 extern struct eglut_state *_eglut;
82 _eglutFatal(char *format, ...);
88 _eglutNativeInitDisplay(void);
91 _eglutNativeFiniDisplay(void);
94 _eglutNativeInitWindow(struct eglut_window *win, const char *title,
95 int x, int y, int w, int h);
98 _eglutNativeFiniWindow(struct eglut_window *win);
101 _eglutNativeEventLoop(void);
103 #endif /* _EGLUTINT_H_ */