Lines Matching defs:_eglut
45 struct eglut_state *_eglut = &_eglut_state;
79 if (_eglut->surface_type != EGL_PBUFFER_BIT)
80 eglDestroySurface(_eglut->dpy, win->surface);
84 eglDestroyContext(_eglut->dpy, win->context);
105 config_attribs[i++] = _eglut->surface_type;
109 if (_eglut->api_mask & EGLUT_OPENGL_BIT)
111 if (_eglut->api_mask & EGLUT_OPENGL_ES1_BIT)
113 if (_eglut->api_mask & EGLUT_OPENGL_ES2_BIT)
115 if (_eglut->api_mask & EGLUT_OPENVG_BIT)
121 if (!eglChooseConfig(_eglut->dpy,
147 if (_eglut->api_mask & EGLUT_OPENGL_BIT) {
150 else if (_eglut->api_mask & EGLUT_OPENVG_BIT) {
153 else if (_eglut->api_mask & EGLUT_OPENGL_ES2_BIT) {
161 win->context = eglCreateContext(_eglut->dpy,
167 switch (_eglut->surface_type) {
169 win->surface = eglCreateWindowSurface(_eglut->dpy,
173 win->surface = eglCreatePixmapSurface(_eglut->dpy,
191 _eglut->api_mask = mask;
197 _eglut->window_width = width;
198 _eglut->window_height = height;
208 _eglut->display_name = argv[++i];
210 _eglut->verbose = 1;
215 _eglut->dpy = eglGetDisplay(_eglut->native_dpy);
217 if (!eglInitialize(_eglut->dpy, &_eglut->major, &_eglut->minor))
220 _eglut->init_time = _eglutNow();
222 printf("EGL_VERSION = %s\n", eglQueryString(_eglut->dpy, EGL_VERSION));
223 if (_eglut->verbose) {
224 printf("EGL_VENDOR = %s\n", eglQueryString(_eglut->dpy, EGL_VENDOR));
226 eglQueryString(_eglut->dpy, EGL_EXTENSIONS));
228 eglQueryString(_eglut->dpy, EGL_CLIENT_APIS));
239 val = _eglutNow() - _eglut->init_time;
252 _eglut->idle_cb = func;
258 _eglut->redisplay = 1;
264 struct eglut_window *win = _eglut->current;
278 eglTerminate(_eglut->dpy);
285 struct eglut_window *window = _eglut->current;
290 eglMakeCurrent(_eglut->dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
292 _eglutDestroyWindow(_eglut->current);
299 if (_eglut->current)
300 eglutDestroyWindow(_eglut->current->index);
313 _eglut->window_width, _eglut->window_height);
315 win->index = _eglut->num_windows++;
321 if (!eglMakeCurrent(_eglut->dpy, win->surface, win->surface, win->context))
323 _eglut->current = win;
331 struct eglut_window *win = _eglut->current;
338 struct eglut_window *win = _eglut->current;
345 struct eglut_window *win = _eglut->current;
353 struct eglut_window *win = _eglut->current;
360 struct eglut_window *win = _eglut->current;
367 struct eglut_window *win = _eglut->current;