Lines Matching defs:surface
84 struct haiku_egl_surface* surface;
85 surface = (struct haiku_egl_surface*) calloc(1, sizeof (*surface));
86 if (!surface) {
91 if (!_eglInitSurface(&surface->surf, disp, EGL_WINDOW_BIT,
93 free(surface);
97 (&surface->surf)->SwapInterval = 1;
103 surface->gl = new BGLView(win->Bounds(), "OpenGL", B_FOLLOW_ALL_SIDES, 0,
107 win->AddChild(surface->gl);
111 return &surface->surf;
304 struct haiku_egl_surface* surface = haiku_egl_surface(surf);
306 surface->gl->SwapBuffers();