public void CreateWindowSurface(EGLConfig config) { Surface = Egl.CreateWindowSurface(Display, config, Handle, null); int error = Egl.GetError(); if (error != Egl.SUCCESS) throw new GraphicsContextException(String.Format("[Error] Failed to create EGL window surface, error {0}.", error)); }
public static EGLSurface CreateWindowSurface(EGLDisplay dpy, EGLConfig config, IntPtr win, int[] attrib_list) { IntPtr ptr = eglCreateWindowSurface(dpy, config, win, attrib_list); EGLSurface ret = new EGLSurface(ptr); return(ret); }
public void CreateWindowSurface(EGLConfig config) { Surface = Egl.CreateWindowSurface(Display, config, Handle, null); int error = Egl.GetError(); if (error != Egl.SUCCESS) { throw new GraphicsContextException(String.Format("[Error] Failed to create EGL window surface, error {0}.", error)); } }
public static extern bool SwapBuffers(EGLDisplay dpy, EGLSurface surface);
public static extern bool MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
public static extern bool ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer);
public void DestroySurface(ref EGLSurface surface) { EglWindowInfo.DestroySurface(ref surface); }
public static extern bool QuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, out int value);
public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface) { Handle = handle; Display = display; Surface = surface; }
public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);
public void MakeCurrent(EGLSurface surface) { Egl.MakeCurrent(Display, surface, surface, EglContext.HandleAsEGLContext); }
public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
public static EGLSurface CreateWindowSurface(EGLDisplay dpy, EGLConfig config, IntPtr win, int[] attrib_list) { IntPtr ptr = eglCreateWindowSurface(dpy, config, win, attrib_list); EGLSurface ret = new EGLSurface(ptr); return ret; }
public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
public static extern bool SurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value);