Lines Matching defs:display
52 EGLDisplay display;
61 * Initialize an EGL context for the current display.
84 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
86 eglInitialize(display, 0, 0);
91 eglChooseConfig(display, attribs, &config, 1, &numConfigs);
97 eglGetConfigAttrib(display, config, EGL_NATIVE_VISUAL_ID, &format);
101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL);
102 context = eglCreateContext(display, config, NULL, NULL);
104 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) {
109 eglQuerySurface(display, surface, EGL_WIDTH, &w);
110 eglQuerySurface(display, surface, EGL_HEIGHT, &h);
112 engine->display = display;
129 * Just the current frame in the display.
132 if (engine->display == NULL) {
133 // No display.
142 eglSwapBuffers(engine->display, engine->surface);
146 * Tear down the EGL context currently associated with the display.
149 if (engine->display != EGL_NO_DISPLAY) {
150 eglMakeCurrent(engine->display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
152 eglDestroyContext(engine->display, engine->context);
155 eglDestroySurface(engine->display, engine->surface);
157 eglTerminate(engine->display);
160 engine->display = EGL_NO_DISPLAY;