public static EGLSurface CreatePbufferSurface(EGLDisplay dpy, EGLConfig config, int[] attrib_list) { IntPtr ptr = eglCreatePbufferSurface(dpy, config, attrib_list); EGLSurface ret = new EGLSurface(); ret.Pointer = ptr; return(ret); }
public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
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 static extern bool SurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value);
public static extern bool QuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, out int value);
public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
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(); ret.Pointer = ptr; return ret; }