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));
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
Exemple #7
0
 public void DestroySurface(ref EGLSurface surface)
 {
     EglWindowInfo.DestroySurface(ref surface);
 }
Exemple #8
0
 public static extern bool SwapBuffers(EGLDisplay dpy, EGLSurface surface);
Exemple #9
0
 public static extern bool ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer);
Exemple #10
0
 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;
 }
Exemple #12
0
 public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);
Exemple #13
0
 public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface)
 {
     Handle  = handle;
     Display = display;
     Surface = surface;
 }
Exemple #14
0
 public void MakeCurrent(EGLSurface surface)
 {
     Egl.MakeCurrent(Display, surface, surface, EglContext.HandleAsEGLContext);
 }
 public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
Exemple #16
0
 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;
 }
Exemple #17
0
 public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
 public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
Exemple #19
0
 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);
Exemple #21
0
 public static extern bool MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
 public static extern bool SurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value);
Exemple #23
0
 public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
Exemple #24
0
 public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);